Skip to content

Commit

Permalink
Updated template
Browse files Browse the repository at this point in the history
  • Loading branch information
ddetommaso committed Aug 5, 2021
1 parent e4eabba commit 8e9b651
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions Makefile → .docker/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
LOCAL_USER_ID := $(shell id -u)
export LOCAL_USER_ID

include .env
include ../.env
include .version

SHELL := /bin/bash
Expand Down Expand Up @@ -111,7 +111,7 @@ setup:

init: setup
echo "Building project docker image ${PJT_DOCKER_IMAGE}"; \
docker build docker -t ${PJT_DOCKER_IMAGE} --build-arg DOCKER_SRC=${DOCKER_SRC} ${BUILD_ARGS};
docker build .. -t ${PJT_DOCKER_IMAGE} --build-arg DOCKER_SRC=${DOCKER_SRC} ${BUILD_ARGS};


build:
Expand All @@ -131,8 +131,8 @@ ifneq (, ${XRANDR_CONF})
$(shell ${XRANDR_CONF})
endif
@echo "Running docker image ${LOCAL_DOCKER_IMAGE}"
docker-compose -f docker-compose.yml -f docker-compose.base.yml ${NVIDIA_COMPOSE} up --remove-orphans
docker-compose down
docker-compose -f ../docker-compose.yml -f docker-compose.base.yml ${NVIDIA_COMPOSE} up --remove-orphans
docker-compose -f ../docker-compose.yml -f docker-compose.base.yml ${NVIDIA_COMPOSE} down

distro: build
@echo "Pushing docker image ${PJT_DOCKER_IMAGE} on dockerhub"
Expand Down
4 changes: 4 additions & 0 deletions docker-compose.base.yml → .docker/docker-compose.base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ services:
source: ${XDG_RUNTIME_DIR}/pulse
target: ${XDG_RUNTIME_DIR}/pulse

- type: bind
source: ${XDG_RUNTIME_DIR}/dconf
target: ${XDG_RUNTIME_DIR}/dconf

- type: bind
source: ./workdir
target: /home/docky/workdir
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
password: ${{ secrets.DOCKER_PASSWORD }}

- name: write version
run: echo RELEASE_TAG=${{ github.event.release.tag_name }} > .version
run: echo RELEASE_TAG=${{ github.event.release.tag_name }} > .docker/.version

- name: commit files
run: |
Expand All @@ -44,4 +44,4 @@ jobs:
branch: refs/heads/master

- name: init build
run: make init build distro
run: cd .docker && make init build distro
File renamed without changes.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ services:
environment:
- PROJECT_NAME=${PROJECT_NAME}

entrypoint: bash
command: terminator
File renamed without changes.

0 comments on commit 8e9b651

Please sign in to comment.