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

Docker cross-platform compiler #102

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
DOCKER_DEFAULT_PLATFORM=linux/amd64
humbertodias committed Sep 24, 2023
commit 92fdb12adba6cc776dc82762b7f3d6c9fd6eb99b
15 changes: 8 additions & 7 deletions Makefile.docker
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
IMAGE=hldtux/ndevkit
TAG=latest
# Forcing amd64 arch
DOCKER_DEFAULT_PLATFORM=linux/amd64

docker:
docker build . -t ndevkit
docker build . -t ${IMAGE}

shell: docker
docker run -it --rm -v `pwd`:/tmp/workdir -w /tmp/workdir ndevkit bash
docker run -it --rm -v `pwd`:/tmp/workdir -w /tmp/workdir ${IMAGE} bash

USER=hldtux
IMAGE=ndevkit
TAGNAME=latest
push:
docker tag ${IMAGE} ${USER}/${IMAGE}:${TAGNAME}
docker push ${USER}/${IMAGE}:${TAGNAME}
docker push ${IMAGE}:${TAG}