use new s6-rc layout

This commit is contained in:
Sebastian Hugentobler 2022-02-15 16:21:13 +01:00
parent 5cef43fdaa
commit fc8c0a489f
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
11 changed files with 25 additions and 14 deletions

View File

@ -1,12 +1,18 @@
stages:
- build
variables: variables:
IMAGE_NAME: thallian/user-access CONTAINER_NAME: thallian/user-access
CI_BUILD_ARCHS: "linux/amd64,linux/arm64"
build: build:
stage: build stage: build
script: image:
- docker login -u $DOCKER_USER -p $DOCKER_PASSWORD $DOCKER_REGISTRY name: gcr.io/kaniko-project/executor:debug
- docker buildx build --platform "$CI_BUILD_ARCHS" --progress plain --pull --tag "$IMAGE_NAME:$CI_COMMIT_SHA" --tag "$IMAGE_NAME:$CI_COMMIT_REF_NAME" --tag "$IMAGE_NAME:latest" --push . entrypoint: [""]
script:
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "$CI_REGISTRY_USER" "$CI_REGISTRY_PASSWORD" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
- >-
/kaniko/executor
--context "$CI_PROJECT_DIR"
--dockerfile "$CI_PROJECT_DIR/Dockerfile"
--destination "$CONTAINER_NAME:$CI_COMMIT_SHA"
--destination "$CONTAINER_NAME:$CI_COMMIT_REF_NAME"
--destination "$CONTAINER_NAME:latest"

View File

@ -1,4 +1,4 @@
#!/usr/bin/with-contenv sh #!/bin/sh
if [ ! -z ${STATIC_USER+x} ]; then if [ ! -z ${STATIC_USER+x} ]; then
echo ${STATIC_PASSWORD} | ftpasswd \ echo ${STATIC_PASSWORD} | ftpasswd \

View File

@ -1 +0,0 @@
/var/lib/ftp/data/ true proftpd:access 0666 0777

View File

@ -0,0 +1,2 @@
confd
static-user

View File

@ -0,0 +1,3 @@
#!/bin/sh
exec proftpd --nodaemon

View File

@ -0,0 +1 @@
longrun

View File

@ -0,0 +1 @@
confd

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
static-user

View File

@ -1,3 +0,0 @@
#!/usr/bin/with-contenv sh
exec proftpd --nodaemon