dockerization
the build was successful
Details
the build was successful
Details
This commit is contained in:
parent
885273716e
commit
1e320a0683
|
@ -0,0 +1 @@
|
||||||
|
target
|
|
@ -0,0 +1,7 @@
|
||||||
|
pipeline:
|
||||||
|
docker:
|
||||||
|
image: docker.io/plugins/docker
|
||||||
|
repo: docker.jcg.re/roomnamebot
|
||||||
|
registry: docker.jcg.re
|
||||||
|
secrets: [ docker_username, docker_password ]
|
||||||
|
autotag: true
|
|
@ -0,0 +1,22 @@
|
||||||
|
FROM docker.io/alpine:edge as builder
|
||||||
|
COPY . /src
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
cargo \
|
||||||
|
build-base \
|
||||||
|
openssl-dev \
|
||||||
|
&& cd /src \
|
||||||
|
&& cargo build --release
|
||||||
|
|
||||||
|
|
||||||
|
FROM docker.io/alpine:edge
|
||||||
|
ENV UID=1337 \
|
||||||
|
GID=1337
|
||||||
|
COPY --from=builder /src/target/release/roomnamebot /usr/local/bin/roomnamebot
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
libssl1.0 \
|
||||||
|
libgcc \
|
||||||
|
ca-certificates \
|
||||||
|
s6 \
|
||||||
|
su-exec
|
||||||
|
COPY docker/root /
|
||||||
|
CMD ["/bin/s6-svscan", "/etc/s6.d/"]
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/sh
|
||||||
|
cd /data
|
||||||
|
chown -R ${UID}:${GID} .
|
||||||
|
exec su-exec ${UID}:${GID} roomnamebot
|
|
@ -0,0 +1 @@
|
||||||
|
#!/bin/sh
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
s6-svc -O /etc/s6.d/cron
|
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec crond -f
|
Loading…
Reference in New Issue