-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: pass ANSIBLE_CONFIG to server config by default
chore: Add openssh to minecraft image for git ssh cloning chore: Install ansible-core and only the collections we need to reduce image size chore: Bump keepup
- Loading branch information
Showing
3 changed files
with
28 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
collections: | ||
- community.general | ||
- ansible.posix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,9 @@ | |
FROM itzg/minecraft-server:java17-alpine | ||
LABEL org.opencontainers.image.authors="Offz <[email protected]>" | ||
|
||
RUN apk add --no-cache ansible rclone wget unzip jq | ||
RUN apk add --no-cache ansible-core rclone wget unzip jq openssh | ||
|
||
ARG KEEPUP_VERSION=2.0.0-beta.3 | ||
ARG KEEPUP_VERSION=2.0.1 | ||
|
||
ENV\ | ||
KEEPUP=true\ | ||
|
@@ -17,23 +17,30 @@ ENV\ | |
ANSIBLE_PULL=true\ | ||
ANSIBLE_PULL_BRANCH=master\ | ||
SERVER_NAME=dev\ | ||
HOME=/data | ||
HOME=/data\ | ||
ANSIBLE_CONFIG=/server-config/ansible.cfg | ||
|
||
WORKDIR /opt/minecraft | ||
|
||
# Install YourKit Java Profiler agents | ||
RUN wget https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2023.9-docker.zip -P /tmp/ && \ | ||
unzip /tmp/YourKit-JavaProfiler-2023.9-docker.zip -d /usr/local && \ | ||
rm /tmp/YourKit-JavaProfiler-2023.9-docker.zip | ||
#RUN wget -q https://www.yourkit.com/download/docker/YourKit-JavaProfiler-2023.9-docker.zip -P /tmp/ && \ | ||
# unzip /tmp/YourKit-JavaProfiler-2023.9-docker.zip -d /usr/local && \ | ||
# rm /tmp/YourKit-JavaProfiler-2023.9-docker.zip | ||
|
||
# Install keepup | ||
RUN wget -nv -O keepup.zip https://github.com/MineInAbyss/Keepup/releases/download/v${KEEPUP_VERSION}/keepup-shadow-${KEEPUP_VERSION}.zip \ | ||
RUN wget -nv -q -O keepup.zip https://github.com/MineInAbyss/Keepup/releases/download/v${KEEPUP_VERSION}/keepup-shadow-${KEEPUP_VERSION}.zip \ | ||
# unzip file inside hocon-to-json.zip into /usr/local \ | ||
&& unzip -q keepup.zip \ | ||
&& rclone copy keepup-shadow-${KEEPUP_VERSION}/ /usr/local \ | ||
&& chmod +x /usr/local/bin/keepup \ | ||
&& rm -rf keepup.zip keepup-shadow-${KEEPUP_VERSION} | ||
|
||
# Install ansible collections | ||
COPY config/ansible-requirements.yml /opt/ansible/requirements.yml | ||
|
||
RUN ansible-galaxy collection install -r /opt/ansible/requirements.yml -p /opt/ansible/collections \ | ||
&& rm /opt/ansible/requirements.yml | ||
|
||
# Copy over scripts | ||
COPY scripts/dev /scripts/dev | ||
RUN chmod +x /scripts/dev/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,9 +9,16 @@ LABEL org.opencontainers.image.authors="Offz <[email protected]>" | |
RUN apt-get update -y \ | ||
&& apt-get install -y rsync rclone wget unzip git pipx python3-venv jq | ||
|
||
RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install --include-deps ansible | ||
# Install ansible | ||
RUN PIPX_HOME=/opt/pipx PIPX_BIN_DIR=/usr/local/bin pipx install ansible-core | ||
|
||
ARG KEEPUP_VERSION=2.0.0-beta.3 | ||
# Install ansible collections | ||
COPY config/ansible-requirements.yml /opt/ansible/requirements.yml | ||
|
||
RUN ansible-galaxy collection install -r /opt/ansible/requirements.yml -p /opt/ansible/collections \ | ||
&& rm /opt/ansible/requirements.yml | ||
|
||
ARG KEEPUP_VERSION=2.0.1 | ||
|
||
ENV\ | ||
KEEPUP=true\ | ||
|
@@ -20,7 +27,8 @@ ENV\ | |
ANSIBLE_PULL=true\ | ||
ANSIBLE_PULL_BRANCH=master\ | ||
SERVER_NAME=dev\ | ||
HOME=/server | ||
HOME=/server\ | ||
ANSIBLE_CONFIG=/server-config/ansible.cfg | ||
|
||
WORKDIR /opt/minecraft | ||
|
||
|