Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
grisha87 committed Feb 27, 2024
0 parents commit cfc322f
Showing 8 changed files with 62 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/image-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build Node.js image
on:
workflow_dispatch:
schedule:
- cron: "@daily"
jobs:
build-gvmi:
name: Build Node.js GVMI
steps:
- name: Checkout files
uses: actions/checkout@v3

- name: Install gvmkit-build
run: pip install gvmkit-build

- name: Build the image and push to registry
working-directory: ./images/node
run: ./build.sh
4 changes: 4 additions & 0 deletions images/node/Dockerfile.18
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM node:18

VOLUME /golem/input /golem/output /golem/work
WORKDIR /golem/work
7 changes: 7 additions & 0 deletions images/node/Dockerfile.18-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:18-alpine

RUN apk upgrade --update-cache --available && apk add openssl
RUN rm -rf /var/cache/apk/*

VOLUME /golem/input /golem/output /golem/work
WORKDIR /golem/work
4 changes: 4 additions & 0 deletions images/node/Dockerfile.20
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM node:20

VOLUME /golem/input /golem/output /golem/work
WORKDIR /golem/work
7 changes: 7 additions & 0 deletions images/node/Dockerfile.20-alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:20-alpine

RUN apk upgrade --update-cache --available && apk add openssl
RUN rm -rf /var/cache/apk/*

VOLUME /golem/input /golem/output /golem/work
WORKDIR /golem/work
14 changes: 14 additions & 0 deletions images/node/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

docker build -t golem/node:20 -t golem/node:latest -f Dockerfile.20 .
gvmkit-build --push golem/node:20
gvmkit-build --push golem/node:latest

docker build -t golem/node:20-alpine -f Dockerfile.20-alpine .
gvmkit-build --push golem/node:20-alpine

docker build -t golem/node:18 -f Dockerfile.18 .
gvmkit-build --push golem/node:18

docker build -t golem/node:18-alpine -f Dockerfile.18-alpine .
gvmkit-build --push golem/node:18-alpine
4 changes: 4 additions & 0 deletions images/tesseract/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM jitesoft/tesseract-ocr

VOLUME /golem/input /golem/output /golem/work
WORKDIR /golem/work
4 changes: 4 additions & 0 deletions images/tesseract/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

docker build -t golem/tesseract:latest .
gvmkit-build --push golem/tesseract:latest

0 comments on commit cfc322f

Please sign in to comment.