Closed hrsrashid closed 7 years ago
@hrsrashid That's awesome.
Hi, sorry for the long answer. Self-hosted gitlab was supported from the initial release. But may be not clear. Here is workflow that used:
Thanks for reply, at least example of how to easily set up Integram in Docker may be useful for someone (had to deal with rejection of self-signed certificate, but solved it by adding certificate to OS's trusted storage, where was another problem that update-ca-certificates
didn't work as expected in Alpine, so there workaround using cat
).
So, simpler Dockerfile should also work:
FROM golang:alpine
RUN apk --no-cache add git ca-certificates openssl
# should probably be moved to docker-compose.yml
ENV INTEGRAM_PORT 443
ENV INTEGRAM_BASE_URL https://example.org:8093
WORKDIR /go/src/app
EXPOSE 443
RUN go-wrapper download github.com/requilence/integram
# cat command is work-around
COPY public.crt /usr/local/share/ca-certificates/code/
RUN update-ca-certificates; \
cat /usr/local/share/ca-certificates/code/public.crt >> /etc/ssl/certs/ca-certificates.crt
COPY . ./
CMD ["go", "run", "main.go"]
I guess PR should be closed?
Yes, thank you! I have the docker deploy for production and planning to add it here at Github with the next updates
environment variable
INTEGRAM_GITLAB_BASE_URL
INTEGRAM_GITLAB_BASE_URL=https://gitlab.com
For self-hosted GitLab CE
Example
Dockerfile
docker-compose.yml