itzg / easy-add Goto Github PK
View Code? Open in Web Editor NEWA utility for easily adding a file from a downloaded archive during Docker builds
License: MIT License
A utility for easily adding a file from a downloaded archive during Docker builds
License: MIT License
Hello ! I'm new to Dockefiles and I'm trying to use the command you created easy-add in my Dockerfile for a project but I'm getting this error permanently and I'm pretty sure it doesn't come from my code as the error is focusing on the "line 7".
In fact I think that it comes from one of your files.
FROM ubuntu:latest
ARG DEBIAN_FRONTEND=noninteractive
# Applications that will be installed in the docker
RUN apt-get update && \
apt-get install -y --no-install-recommends \
vsftpd \
db-util \
openssl \
imagemagick \
lsof \
fakeroot build-essential devscripts \
# shadow \
bash \
curl iputils-arping wget \
git \
jq \
mysql-client \
tzdata \
apt-transport-https \
rsync \
nano && \
apt-get clean
HEALTHCHECK --start-period=1m CMD mc-monitor status --host localhost --port $SERVER_PORT
RUN groupadd -g 1000 minecraft \
&& mkdir -m 777 /home/minecraft \
&& useradd minecraft -s /bin/false -u 1000 -g minecraft -d /home/minecraft \
&& mkdir -m 777 /data \
&& chown minecraft:minecraft /data /home/minecraft
EXPOSE 25565 25575
# hook into docker BuildKit --platform support
# see https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope
ARG TARGETOS=linux
ARG TARGETARCH=amd64
ARG TARGETVARIANT=""
ARG EASY_ADD_VER=0.7.1
ADD https://github.com/itzg/easy-add/releases/tag/${EASY_ADD_VER}/easy-add_${TARGETOS}_${TARGETARCH}${TARGETVARIANT} /usr/bin/easy-add
RUN chmod +x /usr/bin/easy-add
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=1.2.0 --var app=restify --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/tag/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=1.4.7 --var app=rcon-cli --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/tag/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=0.1.7 --var app=mc-monitor --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/tag/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=1.4.2 --var app=mc-server-runner --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/tag/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
RUN easy-add --var os=${TARGETOS} --var arch=${TARGETARCH}${TARGETVARIANT} \
--var version=0.1.1 --var app=maven-metadata-release --file {{.app}} \
--from https://github.com/itzg/{{.app}}/releases/tag/{{.version}}/{{.app}}_{{.version}}_{{.os}}_{{.arch}}.tar.gz
COPY mcstatus /usr/local/bin
VOLUME ["/data"]
COPY server.properties /tmp/server.properties
COPY log4j2.xml /tmp/log4j2.xml
WORKDIR /data
ENTRYPOINT [ "/start" ]
ENV UID=1000 GID=1000 \
MEMORY="1G" \
TYPE=VANILLA VERSION=LATEST FORGEVERSION=RECOMMENDED SPONGEBRANCH=STABLE SPONGEVERSION= FABRICVERSION=LATEST LEVEL=world \
PVP=true DIFFICULTY=easy ENABLE_RCON=true RCON_PORT=25575 RCON_PASSWORD=minecraft \
LEVEL_TYPE=DEFAULT SERVER_PORT=25565 ONLINE_MODE=TRUE SERVER_NAME="Dedicated Server" \
REPLACE_ENV_VARIABLES="FALSE" ENV_VARIABLE_PREFIX="CFG_"
COPY start* /
RUN dos2unix /start* && chmod +x /start*
ENV FTP_USER admin
ENV FTP_PASS admin
ENV PASV_ADDRESS REQUIRED
COPY vsftpd.conf /etc/vsftpd/
COPY vsftpd_virtual /etc/pam.d/
COPY run-vsftpd.sh /usr/sbin/
RUN chmod +x /usr/sbin/run-vsftpd.sh && \
mkdir -p /var/run/vsftpd/empty
VOLUME /home/vsftpd
VOLUME /var/log/vsftpd
EXPOSE 20 21
CMD ["/usr/sbin/run-vsftpd.sh"]
I would be very glad if could help me with my issue @itzg
Hello,
there are some security problems with golang/stdlib smaller than 1.20.11. I ask for a new release and increase of the dependency.
Thank you very much
Hello,
there are some security problems with golang/stdlib smaller than 1.21.5, I ask for a new release and increase of the dependency.
HIGH: CVE-2023-45283
Thank you very much
the main branch has some changes, but a new release build is missing.
Hello @itzg,
please create a new release to fix various security issues for golang stdlib. These were only fixed with 1.20.10.
Affected CVS are e.g:
Thank you
Have you ever thought about integrating Renovate?
This would allow you to update the dependencies automatically. I use this in many of my GitLab projects.
Among others also for my Bedrock Connect Docker image, which uses some of your projects.
Hi itzg,
could you please release easy-add for aarch64?
Im trying to start your minecraft container image on pi4-64 for fun.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.