Skip to content
Open
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
40 changes: 40 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Docker Image CI

on: [push]

jobs:

build-and-publish:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@master
# - uses: actions/checkout@v1
# - name: Build the Docker image
# run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)

- name: Publish to Registry
uses: HurricanKai/Publish-Docker-Github-Action@master
with:
name: mrz1703/elrond-node
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# dockerfile: ./.build/autoupdater.Dockerfile
registry: docker.pkg.github.com

# - name: docker build
# uses: actions/docker/cli@master
# with:
# args: build -t mrz1703/elrond-node-autoupdater -f ./.build/autoupdater.Dockerfile .

# - name: docker login
# uses: actions/docker/login@master
# env:
# DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
# DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}

# - name: docker push
# uses: actions/docker/cli@master
# with:
# args: push mrz1703/elrond-node-autoupdater
26 changes: 26 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM docker:dind

RUN apk add --no-cache bash jq curl grep sed ca-certificates openssl zlib libgcc

# install docker-compose
ENV DC_VERSION=1.25.0
RUN curl -L "https://github.com/docker/compose/releases/download/${DC_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
# install glibc for docker-compose
RUN wget -q -O /etc/apk/keys/sgerrand.rsa.pub https://alpine-pkgs.sgerrand.com/sgerrand.rsa.pub && \
wget https://github.com/sgerrand/alpine-pkg-glibc/releases/download/2.29-r0/glibc-2.29-r0.apk && \
apk add glibc-2.29-r0.apk && \
rm glibc-2.29-r0.apk
# set env and check
ENV LD_LIBRARY_PATH=/lib:/usr/lib
RUN docker-compose version

# RUN addgroup -S -g 1000 elrond && \
# adduser -S -G elrond -u 1000 elrond && \
# addgroup elrond dockremap
# USER elrond
# ENV USER=elrond
# ENV UID=1000
# ENV GID=1000
WORKDIR /opt/elrond-node
CMD ["/opt/elrond-node/autoupdater.sh"]