relayer devcontainer dockerfile
This commit is contained in:
+47
-35
@@ -38,19 +38,10 @@ RUN \
|
|||||||
apt-get -y install --no-install-recommends \
|
apt-get -y install --no-install-recommends \
|
||||||
libonig-dev \
|
libonig-dev \
|
||||||
gnupg2 \
|
gnupg2 \
|
||||||
libjq \
|
|
||||||
libjq-dev \
|
|
||||||
python3-pip \
|
|
||||||
python3-setuptools \
|
|
||||||
debhelper-compat \
|
|
||||||
dh-python \
|
|
||||||
python3-dev \
|
|
||||||
devscripts \
|
|
||||||
python3-jsonschema \
|
|
||||||
python3-semantic-version \
|
|
||||||
python3-kubernetes \
|
|
||||||
python3-yaml \
|
|
||||||
&& \
|
&& \
|
||||||
|
cd /tmp && \
|
||||||
|
wget https://raw.githubusercontent.com/truecharts/apps/master/Gemfile && \
|
||||||
|
cd - && \
|
||||||
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin \
|
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin \
|
||||||
&& \
|
&& \
|
||||||
curl -o /tmp/helm.tar.gz "https://get.helm.sh/helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz" \
|
curl -o /tmp/helm.tar.gz "https://get.helm.sh/helm-v${HELM_VERSION}-linux-$(dpkg --print-architecture).tar.gz" \
|
||||||
@@ -63,25 +54,30 @@ RUN \
|
|||||||
&& tar xvzf /tmp/ct.tar.gz --strip-components=1 -C /etc/ct "etc/" \
|
&& tar xvzf /tmp/ct.tar.gz --strip-components=1 -C /etc/ct "etc/" \
|
||||||
&& chmod +x /usr/local/bin/ct \
|
&& chmod +x /usr/local/bin/ct \
|
||||||
&& \
|
&& \
|
||||||
pip3 install \
|
|
||||||
pre-commit \
|
|
||||||
yamale \
|
|
||||||
yamllint \
|
|
||||||
&& \
|
|
||||||
mkdir /tmp/precommit/ && \
|
|
||||||
cd /tmp && \
|
|
||||||
wget https://raw.githubusercontent.com/truecharts/apps/master/Gemfile && \
|
|
||||||
cd - && \
|
|
||||||
cd /tmp/precommit && \
|
|
||||||
wget https://raw.githubusercontent.com/truecharts/apps/master/.pre-commit-config.yaml && \
|
|
||||||
git init . && \
|
|
||||||
pre-commit install-hooks && \
|
|
||||||
echo "installed pre-commit hooks:" && \
|
|
||||||
ls ~/.cache/pre-commit/* \
|
|
||||||
&& \
|
|
||||||
bundle config set system 'true' \
|
bundle config set system 'true' \
|
||||||
&& bundle install --gemfile /tmp/Gemfile \
|
&& bundle install --gemfile /tmp/Gemfile \
|
||||||
&& \
|
&& \
|
||||||
|
rm -Rf \
|
||||||
|
/tmp/Gemfile \
|
||||||
|
/tmp/Gemfile.lock \
|
||||||
|
/tmp/helm.tar.gz \
|
||||||
|
/tmp/ct.tar.gz
|
||||||
|
|
||||||
|
RUN \
|
||||||
|
apt-get update \
|
||||||
|
&& \
|
||||||
|
apt-get -y install --no-install-recommends \
|
||||||
|
python3-pip \
|
||||||
|
python3-setuptools \
|
||||||
|
debhelper-compat \
|
||||||
|
dh-python \
|
||||||
|
python3-dev \
|
||||||
|
devscripts \
|
||||||
|
python3-jsonschema \
|
||||||
|
python3-semantic-version \
|
||||||
|
python3-kubernetes \
|
||||||
|
python3-yaml \
|
||||||
|
&& \
|
||||||
cd /tmp && \
|
cd /tmp && \
|
||||||
git clone https://github.com/truenas/catalog_validation.git && \
|
git clone https://github.com/truenas/catalog_validation.git && \
|
||||||
cd - && \
|
cd - && \
|
||||||
@@ -90,10 +86,26 @@ RUN \
|
|||||||
pip install -U . && \
|
pip install -U . && \
|
||||||
cd - && \
|
cd - && \
|
||||||
rm -Rf \
|
rm -Rf \
|
||||||
/tmp/Gemfile \
|
/tmp/catalog_validation
|
||||||
/tmp/Gemfile.lock \
|
|
||||||
/tmp/helm.tar.gz \
|
RUN \
|
||||||
/tmp/ct.tar.gz \
|
apt-get update \
|
||||||
/tmp/catalog_validation \
|
&& \
|
||||||
/tmp/precommit \
|
apt-get -y install --no-install-recommends \
|
||||||
|| true
|
python3-pip \
|
||||||
|
&& \
|
||||||
|
pip3 install \
|
||||||
|
pre-commit \
|
||||||
|
yamale \
|
||||||
|
yamllint \
|
||||||
|
&& \
|
||||||
|
mkdir /tmp/precommit/ && \
|
||||||
|
cd /tmp/precommit && \
|
||||||
|
wget https://raw.githubusercontent.com/truecharts/apps/master/.pre-commit-config.yaml && \
|
||||||
|
git init . && \
|
||||||
|
pre-commit install-hooks && \
|
||||||
|
echo "installed pre-commit hooks:" && \
|
||||||
|
ls ~/.cache/pre-commit/* && \
|
||||||
|
cd - && \
|
||||||
|
rm -Rf \
|
||||||
|
/tmp/precommit
|
||||||
|
|||||||
Reference in New Issue
Block a user