Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(elixir): Use precompiled packages from erlang solutions for elixir #481

Merged
merged 5 commits into from
Jul 25, 2023
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,19 @@ RUN apt-get -qq update \
unzip \
openjdk-11-jdk \
maven \
elixir \
&& curl -fsSL https://packages.microsoft.com/config/debian/10/packages-microsoft-prod.deb -o /tmp/packages-microsoft-prod.deb \
&& dpkg -i /tmp/packages-microsoft-prod.deb \
&& rm /tmp/packages-microsoft-prod.deb \
&& curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - \
&& echo 'deb [arch=amd64] https://download.docker.com/linux/debian buster stable' >> /etc/apt/sources.list \
&& curl -fsSL https://packages.erlang-solutions.com/debian/erlang_solutions.asc | apt-key add - \
&& echo 'deb https://packages.erlang-solutions.com/debian bullseye contrib' >> /etc/apt/sources.list \
&& apt-get update -qq \
&& apt-get install -y --no-install-recommends \
dotnet-sdk-7.0 \
docker-ce-cli \
erlang \
elixir \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* \
&& curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --profile minimal -y \
Expand Down
5 changes: 3 additions & 2 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
steps:
- name: 'gcr.io/kaniko-project/executor:v1.5.1'
- name: 'gcr.io/kaniko-project/executor:v1.12.1'
args:
- '--cache=true'
- '--use-new-run'
Expand All @@ -9,9 +9,10 @@ steps:
- '-f'
- 'builder.dockerfile'
- name: 'us.gcr.io/$PROJECT_ID/craft:builder-$COMMIT_SHA'
- name: 'gcr.io/kaniko-project/executor:v1.5.1'
- name: 'gcr.io/kaniko-project/executor:v1.12.1'
args:
- '--cache=true'
- '--compressed-caching=false'
sl0thentr0py marked this conversation as resolved.
Show resolved Hide resolved
- '--use-new-run'
- '--build-arg'
- 'SOURCE_COMMIT=$COMMIT_SHA'
Expand Down
1 change: 1 addition & 0 deletions src/targets/hex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ export class HexTarget extends BaseTarget {
const spawnOptions = { cwd: directory };
const spawnProcessOptions = { showStdout: true };
await spawnProcess(MIX_BIN, ['local.hex', '--force'], spawnOptions, spawnProcessOptions);
await spawnProcess(MIX_BIN, ['local.rebar', '--force'], spawnOptions, spawnProcessOptions);
await spawnProcess(MIX_BIN, ['deps.get'], spawnOptions, spawnProcessOptions);
await spawnProcess(MIX_BIN, ['hex.publish', '--yes'], spawnOptions, spawnProcessOptions);
},
Expand Down
Loading