added wildfly image
All checks were successful
CI / Build wildfly docker images (push) Successful in 2m5s
All checks were successful
CI / Build wildfly docker images (push) Successful in 2m5s
This commit is contained in:
37
.gitea/workflows/build-wildfly.yaml
Normal file
37
.gitea/workflows/build-wildfly.yaml
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
name: CI
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ master ]
|
||||||
|
paths:
|
||||||
|
- 'wildfly/**'
|
||||||
|
- '.gitea/workflows/build-wildfly.yaml'
|
||||||
|
jobs:
|
||||||
|
"Build wildfly docker images":
|
||||||
|
runs-on: woryzen
|
||||||
|
steps:
|
||||||
|
-
|
||||||
|
name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3.4.0
|
||||||
|
with:
|
||||||
|
driver: docker-container
|
||||||
|
-
|
||||||
|
name: Login to Gitea container registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: gitea.woggioni.net
|
||||||
|
username: woggioni
|
||||||
|
password: ${{ secrets.PUBLISHER_TOKEN }}
|
||||||
|
-
|
||||||
|
name: Build and push jenkins-agent images
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
context: "{{defaultContext}}:wildfly"
|
||||||
|
push: true
|
||||||
|
pull: true
|
||||||
|
tags: |
|
||||||
|
"gitea.woggioni.net/woggioni/wildfly:latest"
|
||||||
|
"gitea.woggioni.net/woggioni/wildfly:33.0.1"
|
||||||
|
build-args: "VERSION=33.0.1"
|
||||||
|
cache-from: type=registry,ref=gitea.woggioni.net/woggioni/wildfly:buildx
|
||||||
|
cache-to: type=registry,mode=max,compression=zstd,image-manifest=true,oci-mediatypes=true,ref=gitea.woggioni.net/woggioni/wildfly:buildx
|
||||||
|
|
31
wildfly/Dockerfile
Normal file
31
wildfly/Dockerfile
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
FROM busybox:latest AS build
|
||||||
|
ARG VERSION
|
||||||
|
RUN wget https://github.com/wildfly/wildfly/releases/download/${VERSION}.Final/wildfly-${VERSION}.Final.tar.gz
|
||||||
|
RUN echo " -> Removing unneeded .bat and .ps1 files..." &&\
|
||||||
|
rm -f "wildfly-${VERSION}.Final/bin/"*.{bat,ps1} &&\
|
||||||
|
echo " -> Unpacking the package files..." &&\
|
||||||
|
install -d -m 755 "/opt/" &&\
|
||||||
|
tar -xf wildfly-${VERSION}.Final.tar.gz &&\
|
||||||
|
cp -R "wildfly-${VERSION}.Final" "/opt/wildfly" &&\
|
||||||
|
cd "wildfly-${VERSION}.Final/docs/contrib/scripts/systemd" &&\
|
||||||
|
echo " -> Creating wildfly.conf (environment settings)..." &&\
|
||||||
|
install -D -t "/opt/wildfly/etc/wildfly" -m 644 wildfly.conf &&\
|
||||||
|
echo " -> Copying launch.sh to the bin directory..." &&\
|
||||||
|
install -D -t "/opt/wildfly/bin" -m 755 launch.sh &&\
|
||||||
|
chmod -R u=rwX,g=rwX,o=rX "/opt/wildfly"
|
||||||
|
|
||||||
|
FROM eclipse-temurin:23-jre-alpine AS release
|
||||||
|
RUN adduser wildfly -u 1000 --system -s /bin/sh -h /opt/wildfly
|
||||||
|
COPY --from=build /opt/wildfly /opt/wildfly
|
||||||
|
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/log
|
||||||
|
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/data
|
||||||
|
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/tmp
|
||||||
|
RUN install -d -m 755 -o wildfly /opt/wildfly/standalone/deployments
|
||||||
|
RUN chown -R wildfly /opt/wildfly/standalone/configuration
|
||||||
|
VOLUME ["/opt/wildfly/standalone/deployments", "/opt/wildfly/standalone/tmp", "/opt/wildfly/standalone/data", "/opt/wildfly/standalone/log"]
|
||||||
|
USER wildfly
|
||||||
|
WORKDIR /opt/wildfly
|
||||||
|
ENV LAUNCH_JBOSS_IN_BACKGROUND=true
|
||||||
|
EXPOSE 8080/tcp
|
||||||
|
EXPOSE 9990/tcp
|
||||||
|
ENTRYPOINT ["/opt/wildfly/bin/standalone.sh", "-c", "standalone.xml", "-b", "0.0.0.0"]
|
Reference in New Issue
Block a user