mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-09-15 18:57:03 +00:00
Try running complement on special CI host
This commit is contained in:
parent
b455e407f7
commit
0552a56fc7
5 changed files with 99 additions and 33 deletions
|
@ -1,14 +1,26 @@
|
|||
|
||||
FROM matrixconduit/matrix-conduit:next-alpine AS conduit-complement
|
||||
WORKDIR /workdir
|
||||
|
||||
USER root
|
||||
|
||||
RUN apk add --no-cache caddy
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
COPY --chown=1000:1000 ./conduit-debug-x86_64-unknown-linux-musl /srv/conduit/conduit
|
||||
RUN chmod +x /srv/conduit/conduit
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
# TODO: REMOVE
|
||||
|
||||
RUN apk add --no-cache caddy openssl && \
|
||||
openssl genrsa -out "/conduit-https.key" 2048
|
||||
|
||||
ENV ROCKET_LOG=normal \
|
||||
CONDUIT_LOG="info,rocket=info,_=off,sled=off" \
|
||||
CONDUIT_CONFIG="" \
|
||||
CONDUIT_DATABASE_PATH="/tmp/" \
|
||||
CONDUIT_DATABASE_BACKEND="rocksdb" \
|
||||
CONDUIT_SERVER_NAME=localhost \
|
||||
CONDUIT_ADDRESS="0.0.0.0" \
|
||||
CONDUIT_PORT="6167" \
|
||||
|
@ -17,17 +29,10 @@ ENV ROCKET_LOG=normal \
|
|||
CONDUIT_ALLOW_REGISTRATION="true"
|
||||
|
||||
|
||||
# Enabled Caddy auto cert generation for complement provided CA.
|
||||
COPY ./tests/complement-caddy.json ./caddy.json
|
||||
COPY ./tests/complement-start.sh ./tests/complement-caddy.json /
|
||||
RUN chmod +x /complement-start.sh
|
||||
|
||||
ENTRYPOINT ["/complement-start.sh"]
|
||||
|
||||
EXPOSE 8008 8448
|
||||
|
||||
HEALTHCHECK --start-period=2s --interval=2s CMD true
|
||||
ENTRYPOINT [""]
|
||||
CMD ([ -z "${COMPLEMENT_CA}" ] && echo "Error: Need Complement PKI support" && true) || \
|
||||
cp /ca/ca.crt /usr/local/share/ca-certificates/complement.crt && update-ca-certificates && \
|
||||
export CONDUIT_SERVER_NAME="${SERVER_NAME}" && \
|
||||
sed -i "s/your.server.name/${SERVER_NAME}/g" caddy.json && \
|
||||
(caddy start --config caddy.json) >> /tmp/caddy.log 2>> /tmp/caddy.err.log && \
|
||||
echo "Starting Conduit with address '${SERVER_NAME}'" && \
|
||||
/srv/conduit/conduit
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue