Improvements docker image building
This commit is contained in:
parent
a1896602af
commit
25a63ce0a9
6 changed files with 30 additions and 18 deletions
|
@ -6,7 +6,7 @@ stages:
|
||||||
- image
|
- image
|
||||||
|
|
||||||
.img: &img
|
.img: &img
|
||||||
image: "domaindrivenarchitecture/ddadevops-dind:4.7.2"
|
image: "domaindrivenarchitecture/ddadevops-dind:4.10.0"
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
@ -16,7 +16,7 @@ stages:
|
||||||
- export IMAGE_TAG=$CI_COMMIT_TAG
|
- export IMAGE_TAG=$CI_COMMIT_TAG
|
||||||
|
|
||||||
.cljs-job: &cljs
|
.cljs-job: &cljs
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.7.2"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
@ -29,7 +29,7 @@ stages:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
.clj-job: &clj
|
.clj-job: &clj
|
||||||
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.7.2"
|
image: "domaindrivenarchitecture/ddadevops-clj-cljs:4.10.0"
|
||||||
cache:
|
cache:
|
||||||
key: ${CI_COMMIT_REF_SLUG}
|
key: ${CI_COMMIT_REF_SLUG}
|
||||||
paths:
|
paths:
|
||||||
|
|
|
@ -3,9 +3,9 @@ FROM node:20.10.0-bookworm-slim
|
||||||
|
|
||||||
WORKDIR /excalidraw-backend
|
WORKDIR /excalidraw-backend
|
||||||
|
|
||||||
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/install.sh resources/src ./
|
COPY resources/package.json resources/package-lock.json resources/tsconfig.json resources/install.sh resources/src resources/install_functions.sh ./
|
||||||
|
|
||||||
RUN ./install.sh
|
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes ./install.sh
|
||||||
|
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
EXPOSE 9090
|
EXPOSE 9090
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -exo pipefail
|
set -exo pipefail
|
||||||
|
|
||||||
apt-get update > /dev/null
|
function main() {
|
||||||
apt-get -y upgrade > /dev/null
|
{
|
||||||
apt-get clean
|
apt-get update
|
||||||
rm -rf /var/lib/apt/lists/*
|
apt-get -qqy upgrade
|
||||||
|
} > /dev/null
|
||||||
|
|
||||||
|
cleanupDocker
|
||||||
|
}
|
||||||
|
|
||||||
|
source ./install_functions.sh
|
||||||
|
main
|
||||||
|
|
||||||
npm ci --omit=dev
|
npm ci --omit=dev
|
||||||
npm run build
|
npm run build
|
||||||
|
|
|
@ -2,4 +2,4 @@ FROM jitsi/web:stable-9111
|
||||||
|
|
||||||
# Prepare Configuration
|
# Prepare Configuration
|
||||||
ADD resources /tmp
|
ADD resources /tmp
|
||||||
RUN /tmp/install.sh
|
RUN DEBIAN_FRONTEND=noninteractive DEBCONF_NOWARNINGS=yes /tmp/install.sh
|
||||||
|
|
|
@ -1,13 +1,18 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -exo pipefail
|
set -exo pipefail
|
||||||
|
|
||||||
echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections
|
function main() {
|
||||||
|
{
|
||||||
|
apt-get update
|
||||||
|
apt-get -qqy upgrade
|
||||||
|
} > /dev/null
|
||||||
|
|
||||||
apt-get update > /dev/null
|
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
||||||
apt-get -qy upgrade > /dev/null
|
install -m 0644 /tmp/settings-config.js /defaults/settings-config.js
|
||||||
apt-get clean
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
|
cleanupDocker
|
||||||
|
}
|
||||||
|
|
||||||
install -m 0700 /tmp/install-debug.sh /usr/local/bin/
|
source /tmp/install_functions.sh
|
||||||
install -m 0644 /tmp/settings-config.js /defaults/settings-config.js
|
main
|
|
@ -23,7 +23,7 @@
|
||||||
:main dda.c4k-jitsi.uberjar
|
:main dda.c4k-jitsi.uberjar
|
||||||
:uberjar-name "c4k-jitsi-standalone.jar"
|
:uberjar-name "c4k-jitsi-standalone.jar"
|
||||||
:dependencies [[org.clojure/tools.cli "1.0.219"]
|
:dependencies [[org.clojure/tools.cli "1.0.219"]
|
||||||
[ch.qos.logback/logback-classic "1.4.13"
|
[ch.qos.logback/logback-classic "1.4.14"
|
||||||
:exclusions [com.sun.mail/javax.mail]]
|
:exclusions [com.sun.mail/javax.mail]]
|
||||||
[org.slf4j/jcl-over-slf4j "2.0.9"]]}}
|
[org.slf4j/jcl-over-slf4j "2.0.9"]]}}
|
||||||
:release-tasks [["test"]
|
:release-tasks [["test"]
|
||||||
|
|
Loading…
Reference in a new issue