Skip to content

Commit

Permalink
fix: Specify entrypoint to be the agent
Browse files Browse the repository at this point in the history
Drop gluon volume, woorkdir and user for the moment.
  • Loading branch information
AiyionPrime committed Jun 29, 2024
1 parent 33b81c5 commit 0353230
Showing 1 changed file with 21 additions and 16 deletions.
37 changes: 21 additions & 16 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
FROM jenkins/agent:latest-bookworm-jdk17
USER root

ARG TARGETOS
ARG TARGETARCH

### Start gluon
#
#ARG TARGETOS=linux
#ARG TARGETARCH=amd64
#
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates \
Expand All @@ -29,15 +30,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
openssh-client \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN mkdir /tmp/ec &&\
wget -O /tmp/ec/ec-${TARGETOS}-${TARGETARCH}.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.0/ec-${TARGETOS}-${TARGETARCH}.tar.gz &&\
tar -xvzf /tmp/ec/ec-${TARGETOS}-${TARGETARCH}.tar.gz &&\
mv bin/ec-${TARGETOS}-${TARGETARCH} /usr/local/bin/editorconfig-checker &&\
rm -rf /tmp/ec

RUN useradd -m -d /gluon -u 100 -g 100 -o gluon
USER gluon

VOLUME /gluon
WORKDIR /gluon
#
#RUN mkdir /tmp/ec &&\
# wget -O /tmp/ec/ec-${TARGETOS}-${TARGETARCH}.tar.gz https://github.com/editorconfig-checker/editorconfig-checker/releases/download/2.7.0/ec-${TARGETOS}-${TARGETARCH}.tar.gz &&\
# tar -xvzf /tmp/ec/ec-${TARGETOS}-${TARGETARCH}.tar.gz &&\
# mv bin/ec-${TARGETOS}-${TARGETARCH} /usr/local/bin/editorconfig-checker &&\
# rm -rf /tmp/ec
#
##RUN useradd -m -d /gluon -u 100 -g 100 -o gluon
##USER gluon
#
##VOLUME /gluon
##WORKDIR /gluon
#
#### End gluon
#USER jenkins
#ENTRYPOINT ["/usr/local/bin/jenkins-agent"]

0 comments on commit 0353230

Please sign in to comment.