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

dbld: shell improvements #294

Merged
merged 5 commits into from
Sep 19, 2024
Merged
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
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 "$*"
Loading