Skip to content

Commit

Permalink
Merge pull request #294 from alltilla/dbld-shell-improvements
Browse files Browse the repository at this point in the history
dbld: shell improvements
  • Loading branch information
MrAnno authored Sep 19, 2024
2 parents c74d445 + f7917df commit 1b65072
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion dbld/images/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ else
create_user
fi
echo "Added new user: $USER_NAME"
exec sudo --preserve-env -Hu "${USER_NAME}" "$@"
exec sudo --preserve-env --preserve-env=PATH -Hu "${USER_NAME}" "$@"
fi
1 change: 1 addition & 0 deletions dbld/packages.manifest
Original file line number Diff line number Diff line change
Expand Up @@ -142,3 +142,4 @@ astyle [devshell]
snmptrapd [devshell]
dwarves [devshell]
jq [devshell]
curl [devshell]
6 changes: 3 additions & 3 deletions dbld/rules
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ DOCKER_RUN_ARGS=-e USER_NAME_ON_HOST=$(shell whoami) \
-e CCACHE_DIR=/build/ccache \
-e MODE=$(MODE) \
-e VERSION=$(VERSION) \
-e PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
-e PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin$(if $(DOCKER_EXTRA_PATH),:$(DOCKER_EXTRA_PATH)) \
-e GRADLE_USER_HOME=/build/gradle-home \
-e GRADLE_PROJECT_CACHE_DIR=/build/gradle-cache \
-e GRADLE_FLAGS=--build-cache \
Expand All @@ -54,9 +54,9 @@ GIT_RELEASE_TAG=axosyslog-$(VERSION)
CONFIGURE_OPTS=--enable-debug --enable-manpages --with-python=3 --prefix=/install $(CONFIGURE_ADD)
DBLD_RULES=$(MAKE) --no-print-directory -f $(DBLD_DIR)/rules

DOCKER_SHELL=$(DOCKER) run $(DOCKER_RUN_ARGS) --rm -ti ${CONTAINER_REGISTRY}/axosyslog-dbld-$* /dbld/shell
DOCKER_SHELL=$(DOCKER) run $(DOCKER_RUN_ARGS) --rm -ti ${CONTAINER_REGISTRY}/axosyslog-dbld-$* /dbld/shell $(if $(SHELL_COMMAND),"$(SHELL_COMMAND)",bash)

-include dbld/rules.conf
-include $(if $(RULES_CONF),$(RULES_CONF),$(DBLD_DIR)/rules.conf)

help:
@echo "This script allows you to build release/snapshot artifacts, such "
Expand Down
2 changes: 1 addition & 1 deletion dbld/shell
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ if [ "$IMAGE_PLATFORM" != "devshell" ]; then
echo -e "NOTE: the 'devshell' dbld image is more developer friendly, you might want to use that"
fi
cd /source
debian_chroot="dbld" HOME=/build exec bash
debian_chroot="dbld" HOME=/build exec bash -c "$*"

0 comments on commit 1b65072

Please sign in to comment.