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(): Add NodeJS to runtime images #49

Merged
merged 4 commits into from
Jan 24, 2023
Merged
Show file tree
Hide file tree
Changes from all 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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ updates:
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"
interval: "weekly"
32 changes: 18 additions & 14 deletions .github/workflows/new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,27 @@ on:
branches:
- main

# permissions: []
# contents: read
# packages: write

jobs:
new-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false

- name: Install nodejs
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install nodejs
uses: actions/setup-node@v3
with:
node-version: "16"

- name: Run semantic release
run: |
npm install
npx multi-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
- name: Run semantic release
run: |
npm install
npx multi-semantic-release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
4 changes: 4 additions & 0 deletions .github/workflows/publish-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
tags:
- "**"

# permissions: []
# contents: read
# packages: write

jobs:
new-release:
runs-on: ubuntu-20.04
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
args: [--config=.hadolint.yaml]

- repo: https://github.com/bridgecrewio/checkov.git
rev: "2.2.154"
rev: "2.2.279"
hooks:
- id: checkov
files: ""
Expand All @@ -53,7 +53,7 @@ repos:
- hook-config=--config .gitleaks.toml

- repo: https://github.com/gitguardian/ggshield
rev: v1.14.1
rev: v1.14.2
hooks:
- id: ggshield
language_version: python3
Expand Down
21 changes: 19 additions & 2 deletions docker/py3.9/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RUN rm -rf /var/lib/apt/lists/* \
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
locale-gen && \
# ==================================================================
# python and git
# python, git
# ------------------------------------------------------------------
add-apt-repository ppa:deadsnakes/ppa && \
add-apt-repository ppa:git-core/ppa && \
Expand All @@ -71,11 +71,28 @@ RUN rm -rf /var/lib/apt/lists/* \
python3.9 ~/get-pip.py && \
ln -s /usr/bin/python3.9 /usr/local/bin/python3 && \
ln -s /usr/bin/python3.9 /usr/local/bin/python && \
# ==================================================================
# nodejs
# ------------------------------------------------------------------
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh && \
bash /tmp/nodesource_setup.sh && \
apt-get install nodejs=16.19.0-deb-1nodesource1 -y

COPY dvcorg-cml-0.18.17.tgz /tmp/dvcorg-cml-0.18.17.tgz

# Split apt update stages to avoid cache invalidation
RUN \
# ==================================================================
# minio client
# ------------------------------------------------------------------
curl -o /usr/local/bin/mc -L "https://dl.min.io/client/mc/release/linux-amd64/mc" && \
chmod +x /usr/local/bin/mc
chmod +x /usr/local/bin/mc && \
# ==================================================================
# cml
# ------------------------------------------------------------------
npm install --global /tmp/dvcorg-cml-0.18.17.tgz
# curl -o /usr/local/bin/cml -L "https://github.com/iterative/cml/releases/download/v0.18.17/cml-linux-x64" && \
# chmod +x /usr/local/bin/cml
# ==================================================================
# python libraries
# ------------------------------------------------------------------
Expand Down
Binary file added docker/py3.9/dvcorg-cml-0.18.17.tgz
Binary file not shown.