Merge branch '2-creer-une-image-docker-pour-le-client-godot' into 'main'
Resolve "Créer une image Docker pour le client Godot" Closes #2 See merge request khaganat/docker-files-for-ci!1
This commit is contained in:
commit
901eb5caf9
4 changed files with 98 additions and 0 deletions
25
.gitlab-ci.yml
Normal file
25
.gitlab-ci.yml
Normal file
|
@ -0,0 +1,25 @@
|
|||
stages:
|
||||
- build_3.3.4
|
||||
- build_4
|
||||
|
||||
build-godot-export:
|
||||
stage: build_3.3.4
|
||||
tags:
|
||||
- shell
|
||||
script:
|
||||
- cd godot
|
||||
- docker build -t khaganat/godot-export:3.3.4 .
|
||||
- docker tag khaganat/godot-export:3.3.4 khaganat/godot-export:3.3.4
|
||||
- docker push khaganat/godot-export:3.3.4
|
||||
when: manual
|
||||
|
||||
build-godot4-export:
|
||||
stage: build_4
|
||||
tags:
|
||||
- shell
|
||||
script:
|
||||
- cd godot4
|
||||
- docker build -t khaganat/godot-export:4 .
|
||||
- docker tag khaganat/godot-export:4 khaganat/godot-export:4
|
||||
- docker push khaganat/godot-export:4
|
||||
when: manual
|
31
godot/Dockerfile
Normal file
31
godot/Dockerfile
Normal file
|
@ -0,0 +1,31 @@
|
|||
FROM debian:buster
|
||||
LABEL version="1.0" maintainer="Khaganat <contact@khaganat.net>"
|
||||
|
||||
USER root
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
apt-utils \
|
||||
ca-certificates \
|
||||
git \
|
||||
git-lfs \
|
||||
python \
|
||||
python-openssl \
|
||||
unzip \
|
||||
wget \
|
||||
zip \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
|
||||
ENV GODOT_VERSION "3.3.4"
|
||||
|
||||
RUN wget https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip \
|
||||
&& wget https://downloads.tuxfamily.org/godotengine/${GODOT_VERSION}/Godot_v${GODOT_VERSION}-stable_export_templates.tpz \
|
||||
&& mkdir ~/.cache \
|
||||
&& mkdir -p ~/.config/godot \
|
||||
&& mkdir -p ~/.local/share/godot/templates/${GODOT_VERSION}.stable \
|
||||
&& unzip Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip \
|
||||
&& mv Godot_v${GODOT_VERSION}-stable_linux_headless.64 /usr/local/bin/godot \
|
||||
&& unzip Godot_v${GODOT_VERSION}-stable_export_templates.tpz \
|
||||
&& mv templates/* ~/.local/share/godot/templates/${GODOT_VERSION}.stable \
|
||||
&& rm -f Godot_v${GODOT_VERSION}-stable_export_templates.tpz Godot_v${GODOT_VERSION}-stable_linux_headless.64.zip
|
||||
|
0
godot4/.gitkeep
Normal file
0
godot4/.gitkeep
Normal file
42
godot4/Dockerfile
Normal file
42
godot4/Dockerfile
Normal file
|
@ -0,0 +1,42 @@
|
|||
FROM debian:bullseye
|
||||
LABEL version="1.0" maintainer="Khaganat <contact@khaganat.net>"
|
||||
|
||||
USER root
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
git \
|
||||
git-lfs \
|
||||
python3 \
|
||||
python3-openssl \
|
||||
unzip \
|
||||
wget \
|
||||
zip \
|
||||
rsync \
|
||||
build-essential \
|
||||
scons \
|
||||
pkg-config \
|
||||
libx11-dev \
|
||||
libxcursor-dev \
|
||||
libxinerama-dev \
|
||||
libgl1-mesa-dev \
|
||||
libglu-dev \
|
||||
libasound2-dev \
|
||||
libpulse-dev \
|
||||
libudev-dev \
|
||||
libxi-dev \
|
||||
libxrandr-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV GODOT_VERSION="4.0-stable"
|
||||
|
||||
RUN wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}/Godot_v${GODOT_VERSION}_linux.x86_64.zip \
|
||||
&& wget https://github.com/godotengine/godot/releases/download/${GODOT_VERSION}/Godot_v${GODOT_VERSION}_export_templates.tpz \
|
||||
&& mkdir -p ~/.cache \
|
||||
&& mkdir -p ~/.config/godot \
|
||||
&& mkdir -p ~/.local/share/godot/templates/${GODOT_VERSION} \
|
||||
&& unzip Godot_v${GODOT_VERSION}_linux.x86_64.zip \
|
||||
&& mv Godot_v${GODOT_VERSION}_linux.x86_64 /usr/local/bin/godot \
|
||||
&& unzip Godot_v${GODOT_VERSION}_export_templates.tpz \
|
||||
&& mv templates/* ~/.local/share/godot/templates/${GODOT_VERSION} \
|
||||
&& rm -f Godot_v${GODOT_VERSION}_linux.x86_64.zip Godot_v${GODOT_VERSION}_export_templates.tpz
|
Loading…
Reference in a new issue