Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
🚀
This server has been upgraded to GitLab release
15.7
.
🚀
Open sidebar
memoriav
Memobase 2020
services
Streaming Server
Commits
3c02f14d
Verified
Commit
3c02f14d
authored
Apr 24, 2020
by
Sebastian Schüpbach
Browse files
setup CI workflow
parent
1f98caea
Pipeline
#8444
passed with stages
in 2 minutes and 54 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitlab-ci.yml
0 → 100644
View file @
3c02f14d
include
:
-
project
:
'
memoriav/memobase-2020/utilities/ci-templates'
file
:
'
docker-image.yml'
variables
:
DOCKER_TLS_CERTDIR
:
"
"
stages
:
-
test
-
publish
test
:
stage
:
test
tags
:
-
mbr
image
:
golang:1.14
variables
:
PROJECT_PATH
:
gitlab.switch.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
before_script
:
-
mkdir -p /go/src/gitlab.switch.ch/$CI_PROJECT_NAMESPACE/
-
ln -s $CI_PROJECT_DIR /go/src/$PROJECT_PATH
-
cd /go/src/$PROJECT_PATH && go get ./...
script
:
-
go test $PROJECT_PATH/main
Dockerfile
0 → 100644
View file @
3c02f14d
FROM
golang:1.14
as
builder
RUN
adduser
--system
appuser
WORKDIR
$GOPATH/src/gitlab.switch.ch/memoriav/memobase-2020/streaming-server
COPY
. .
# Fetch dependencies
RUN
go get
-d
-v
./...
# Compile the binary. Mind the flags because it has to work in the next image.
RUN
CGO_ENABLED
=
0
GOOS
=
linux
GOARCH
=
amd64 go build
-o
bin/app
-a
gitlab.switch.ch/memoriav/memobase-2020/streaming-server/main
FROM
scratch
WORKDIR
/
COPY
--from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY
--from=builder /go/src/gitlab.switch.ch/memoriav/memobase-2020/streaming-server/bin/app /app
COPY
--from=builder /etc/passwd /etc/passwd
USER
appuser
EXPOSE
81
ENTRYPOINT
["/app"]
README.md
View file @
3c02f14d
# Streaming Server
Test Implementation for Media Streaming Server
\ No newline at end of file
Test Implementation for Media Streaming Server
## Docker
```
sh
docker run
-v
<path_to_config>:/memostream.toml memostream
```
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment