Skip to content

Commit

Permalink
Build elixir image
Browse files Browse the repository at this point in the history
  • Loading branch information
Manel Eljishi authored and Manel Eljishi committed Oct 17, 2024
1 parent c6d56b2 commit 716e48d
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
16 changes: 16 additions & 0 deletions .gitlab/.gitlab-ci.elixir.docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
build_docker_javascript:
stage: build
variables:
DOCKERFILE_PATH: $CI_PROJECT_DIR/docker/Dockerfile.elixir
DESTINATION_IMAGE: $CI_REGISTRY_IMAGE/code-pushup-elixir:latest
image:
name: gcr.io/kaniko-project/executor:v1.23.2-debug
entrypoint: [""]
when: manual
script:
- /kaniko/executor
--context ${CI_PROJECT_DIR}
--snapshot-mode=redo
--use-new-run
--dockerfile $DOCKERFILE_PATH
--destination $DESTINATION_IMAGE
16 changes: 14 additions & 2 deletions docker/Dockerfile.elixir
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-bullseye
FROM registry.gitlab.com/ufirstgroup/ufg/code-pushup-plugins/code-pushup-base:latest

ENV NODE_PATH=/usr/local/lib/node_modules/

Expand All @@ -9,4 +9,16 @@ RUN npm install -g \
"@code-pushup/models@^0.49.0" \
"@code-pushup/eslint-config@^0.8.0" \
"@code-pushup/eslint-plugin@^0.50.0"
RUN npm install -g "@code-pushup/cli@^0.50.0"
RUN npm install -g "@code-pushup/cli@^0.50.0"

RUN apt-get update && apt-get install -y --no-install-recommends curl git; \
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.1; \
/bin/bash -c 'echo -e "\n\n## Configure ASDF \n. $HOME/.asdf/asdf.sh" >> ~/.bashrc'; \
/bin/bash -c 'echo -e "\n\n## ASDF Bash Completion: \n. $HOME/.asdf/completions/asdf.bash" >> ~/.bashrc'; \
exec bash; \
asdf plugin add erlang; \
asdf plugin add elixir; \
asdf install erlang 26.1.2;\
asdf install elixir 1.16.2 \
asdf global erlang 26.1.2; \
asdf global elixir 1.16.2;

0 comments on commit 716e48d

Please sign in to comment.