Compare commits

..

29 commits

Author SHA1 Message Date
cdd08afd57 Merge branch 'renovate/configure' into 'main'
Configure Renovate

See merge request docker-multiarch/prosody!1
2022-07-23 09:05:57 +00:00
Renovate Bot
2823980be5 Add renovate.json 2022-07-23 08:59:21 +00:00
777fe64cdc updated base image to alpine 3.16 2022-07-22 23:11:16 +02:00
3ea970a14e remove the reference to the private old registry 2021-08-24 15:41:37 +02:00
5ffb34a8c0 new single stage ci and push to docker hub 2021-06-16 10:31:47 +02:00
a3c4066f28 removed old link to the original github repo (will have to write a new readme and reference it ther) 2021-06-16 10:30:59 +02:00
8c16e380fc removed unused/empty script 2021-06-10 09:22:36 +02:00
a4482be8ea unique buildx builder name to prevent hickups 2021-06-10 09:22:16 +02:00
3d504fbfb0 make build platforms configurable via CI var 2021-06-10 09:20:56 +02:00
b3e399e93c new single-stage multiarch ci 2021-06-09 13:42:25 +02:00
988cd03b37 switched to alpine 3.13 2021-05-08 01:08:17 +02:00
204799632f we need lua5.2-ldap 2020-10-13 21:34:00 +02:00
147c416d26 changed to the current one-stage default ci config 2020-09-25 09:07:38 +02:00
e6d77c4e27 added explicit service and added experimental flag to the push latest job 2020-09-12 21:31:53 +02:00
1d75f246c3 added --platform switch to pull, tag and push in push-latest job 2020-09-12 21:27:28 +02:00
9820641a36 i think we need to login to pull and push from and to our private registry 2020-09-12 21:12:22 +02:00
8d462cf78b maybe we have some image tagging now! 2020-09-12 21:02:49 +02:00
47d9a72e43 multiplatform building with buildx, not real image tagging anymore for the moment - sadly 2020-09-12 20:58:35 +02:00
f427d472ea don't specify a prosody version anymore, always use the latest and greates available in the alpine repos 2020-09-12 12:07:17 +02:00
43b2f2da19 changed maintainer in Dockerfile 2020-09-12 12:04:46 +02:00
c21a87e34d switched to prosody 0.11.5-r0 2020-09-12 12:03:38 +02:00
e1cb12e555 switched to alpine 3.12 2020-09-12 12:03:06 +02:00
e79a709db0 initial ci config 2020-09-12 11:47:25 +02:00
dependabot-preview[bot]
bf7a0faff6 Bump alpine from 3.10.1 to 3.10.2 (#7)
Bumps alpine from 3.10.1 to 3.10.2.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-08-21 08:52:27 +02:00
dependabot-preview[bot]
d58ef69d92 Bump alpine from 3.10.0 to 3.10.1 (#6)
Bumps alpine from 3.10.0 to 3.10.1.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-07-12 09:36:48 +02:00
Jochen Schalanda
ea94828447
Update to Prosody 0.11.2-r0 2019-06-27 11:09:23 +02:00
dependabot-preview[bot]
682af5c1c6 Bump alpine from 3.9 to 3.10.0 (#5)
Bumps alpine from 3.9 to 3.10.0.

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-06-27 11:07:29 +02:00
KemoNine
b5c73b979e Update to use latest alpine prosody release 2019-02-08 08:56:00 +01:00
dependabot[bot]
69aad8e891 Bump alpine from 3.8 to 3.9
Bumps alpine from 3.8 to 3.9.

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-31 09:28:19 +01:00
3 changed files with 18 additions and 74 deletions

View file

@ -1,77 +1,21 @@
# This is a GitLab CI configuration to build the project as a docker image image: egon0/docker-with-buildx-and-git:latest
# The file is generic enough to be dropped in a project containing a working Dockerfile
# Author: Florent CHAUVEAU <florent.chauveau@gmail.com>
# Mentioned here: https://blog.callr.tech/building-docker-images-with-gitlab-ci-best-practices/
# do not use "latest" here, if you want this to work in the future
image: docker:19
variables: variables:
DOCKER_DRIVER: overlay DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay2
DOCKER_TLS_CERTDIR: "" DOCKER_TLS_CERTDIR: ""
stages:
- build
- push
# Use this if your GitLab runner does not use socket binding
services: services:
- docker:19-dind - docker:dind
before_script: build:
# docker login asks for the password to be passed through stdin for security
# we use $CI_JOB_TOKEN here which is a special token provided by GitLab
- echo -n $CI_JOB_TOKEN | docker login -u gitlab-ci-token --password-stdin $CI_REGISTRY
Build:
stage: build stage: build
script:
# fetches the latest image (not failing if image is not found)
- docker pull $CI_REGISTRY_IMAGE:latest || true
# builds the project, passing proxy variables, and vcs vars for LABEL
# notice the cache-from, which is going to use the image we just pulled locally
# the built image is tagged locally with the commit SHA, and then pushed to
# the GitLab registry
- >
docker build
--pull
--build-arg VCS_REF=$CI_COMMIT_SHA
--build-arg VCS_URL=$CI_PROJECT_URL
--cache-from $CI_REGISTRY_IMAGE:latest
--tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
.
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
# Here, the goal is to tag the "main" branch as "latest"
Push latest:
variables: variables:
# We are just playing with Docker here. IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
# We do not need GitLab to clone the source code. D_IMAGE_TAG: egon0/prosody-alpine-ldap-multiarch:$CI_COMMIT_REF_SLUG
GIT_STRATEGY: none D_LATEST_TAG: egon0/prosody-alpine-ldap-multiarch:latest
stage: push
only:
# Only "main" should be tagged "latest"
- main
script: script:
# Because we have no guarantee that this job will be picked up by the same runner - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
# that built the image in the previous step, we pull it again locally - docker login -u $DOCKER_LOGIN -p $DOCKER_PASSWORD
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME - docker buildx create --use --name A$CI_COMMIT_SHORT_SHA
# Then we tag it "latest" - docker buildx build --platform $BUILD_PLATFORMS --push -t $IMAGE_TAG -t $CI_REGISTRY_IMAGE:latest -t $D_IMAGE_TAG -t $D_LATEST_TAG .
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME $CI_REGISTRY_IMAGE:latest
# Annnd we push it.
- docker push $CI_REGISTRY_IMAGE:latest
# Finally, the goal here is to Docker tag any Git tag
# GitLab will start a new pipeline everytime a Git tag is created, which is pretty awesome
Push tag:
variables:
# Again, we do not need the source code here. Just playing with Docker.
GIT_STRATEGY: none
stage: push
only:
# We want this job to be run on tags only.
- tags
script:
- docker pull $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
- docker tag $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME

View file

@ -1,7 +1,5 @@
FROM alpine:3.8 FROM alpine:3.16
MAINTAINER Jochen Schalanda <jochen+docker@schalanda.name> MAINTAINER Micha Gläß-Stöcker <micha+docker@glaess.cc>
ENV PROSODY_VERSION 0.10.2-r0
# Build-time metadata as defined at http://label-schema.org # Build-time metadata as defined at http://label-schema.org
ARG BUILD_DATE ARG BUILD_DATE
@ -13,13 +11,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="Prosody IM Docker image based on Alpine Linux" \ org.label-schema.description="Prosody IM Docker image based on Alpine Linux" \
org.label-schema.url="https://prosody.im/" \ org.label-schema.url="https://prosody.im/" \
org.label-schema.vcs-ref=$VCS_REF \ org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/joschi/docker-prosody-alpine" \
org.label-schema.version=$VERSION \ org.label-schema.version=$VERSION \
org.label-schema.schema-version="1.0" \ org.label-schema.schema-version="1.0" \
com.microscaling.docker.dockerfile="/Dockerfile" \ com.microscaling.docker.dockerfile="/Dockerfile" \
com.microscaling.license="MIT" com.microscaling.license="MIT"
RUN apk add --no-cache bash "prosody=${PROSODY_VERSION}" RUN apk add --no-cache bash "prosody" lua5.2-ldap
RUN mkdir -p /etc/prosody/conf.d /usr/local/lib/prosody/modules RUN mkdir -p /etc/prosody/conf.d /usr/local/lib/prosody/modules
COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua

3
renovate.json Normal file
View file

@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}