Skip to content

Commit 3f704a1

Browse files
authored
Install common utilities via an external script (#27)
* test external script to install common softwares * dev * dev * Update ci.yml
1 parent e49e358 commit 3f704a1

File tree

2 files changed

+7
-30
lines changed

2 files changed

+7
-30
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ on:
55
#- cron: "0 10 * * *" # everyday at 10am
66
push:
77
branches:
8-
- "**"
8+
- main
9+
- master
10+
- dev
911
tags:
1012
- "*"
1113
pull_request:

Dockerfile

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,10 @@ FROM codercom/code-server:4.3.0
22
ARG PYTHON_VERSION=3.10
33
ARG QUARTO_VERSION="0.9.287"
44

5-
RUN sudo apt-get -y update && \
6-
sudo apt-get -y install wget \
7-
cmake \
8-
jq \
9-
bash-completion \
10-
vim \
11-
g++
12-
13-
# Install kubectl
14-
RUN sudo wget "https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl" -O /usr/local/bin/kubectl && \
15-
sudo chmod +x /usr/local/bin/kubectl
16-
RUN sudo sh -c "kubectl completion bash >/etc/bash_completion.d/kubectl"
17-
18-
# Install helm
19-
RUN curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 && \
20-
chmod 700 get_helm.sh && \
21-
./get_helm.sh
22-
23-
# Install mc
24-
RUN sudo wget https://dl.min.io/client/mc/release/linux-amd64/mc -O /usr/local/bin/mc && \
25-
sudo chmod +x /usr/local/bin/mc
26-
27-
# Install vault
28-
RUN sudo apt-get install -y unzip
29-
RUN cd /usr/bin && \
30-
sudo wget https://releases.hashicorp.com/vault/1.8.4/vault_1.8.4_linux_amd64.zip && \
31-
sudo unzip vault_1.8.4_linux_amd64.zip && \
32-
sudo rm vault_1.8.4_linux_amd64.zip
33-
RUN sudo vault -autocomplete-install
5+
# Install common softwares
6+
RUN sudo apt-get -y update && \
7+
curl -s https://raw.githubusercontent.com/InseeFrLab/onyxia/main/resources/common-software-docker-images.sh | sudo bash -s && \
8+
sudo apt-get -y install cmake g++
349

3510
# Install QUARTO
3611
RUN wget "https://github.com/quarto-dev/quarto-cli/releases/download/v${QUARTO_VERSION}/quarto-${QUARTO_VERSION}-linux-amd64.deb"

0 commit comments

Comments
 (0)