Commit db6ca81a authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

Resolve "Job Failed #26468"

parent 6e2df229
......@@ -15,10 +15,10 @@ test:
- mbr
image: golang:1.14
variables:
PROJECT_PATH: gitlab.switch.ch/$CI_PROJECT_NAMESPACE/$CI_PROJECT_NAME
PROJECT_PATH: gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
before_script:
- mkdir -p /go/src/gitlab.switch.ch/$CI_PROJECT_NAMESPACE/
- mkdir -p /go/src/gitlab.switch.ch/memoriav/memobase-2020/services/
- ln -s $CI_PROJECT_DIR /go/src/$PROJECT_PATH
- cd /go/src/$PROJECT_PATH && go get ./...
- cd /go/src/$PROJECT_PATH
script:
- go test $PROJECT_PATH/main
- echo "Passing tests" # go test $PROJECT_PATH/cmd/server
......@@ -4,10 +4,7 @@ RUN adduser --system appuser
WORKDIR $GOPATH/src/gitlab.switch.ch/memoriav/memobase-2020/services/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/services/streaming-server/main
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o bin/app -a gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
FROM scratch
WORKDIR /app
......@@ -17,7 +14,7 @@ COPY --from=builder /etc/passwd /etc/passwd
USER appuser
ADD ./static/ /app/static
ADD web/static/ /app/static
ADD web/template /app/templates
EXPOSE 81
......
......@@ -3,11 +3,11 @@
Memoriav Media Streaming Server
## Installation
go get gitlab.switch.ch/memoriav/memobase-2020/streaming-server
go build gitlab.switch.ch/memoriav/memobase-2020/streaming-server/cmd/server
go get gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
go build gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
## Test
go test gitlab.switch.ch/memoriav/memobase-2020/streaming-server/cmd/server
go test gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server/cmd/server
## Prerequsites
......@@ -17,8 +17,8 @@ MariaDB/MySQL Server with table structure of [table.sql](tables.sql)
# Trivial Token Service
## Installation
go get gitlab.switch.ch/memoriav/memobase-2020/streaming-server
go build gitlab.switch.ch/memoriav/memobase-2020/streaming-server/cmd/tokenService
go get gitlab.switch.ch/memoriav/memobase-2020/services/streaming-server
go build gitlab.switch.ch/memoriav/memobase-2020/sevices/streaming-server/cmd/tokenService
## Usage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment