Skip to content

Commit 7c01722

Browse files
authored
Merge pull request syslog-ng#5121 from HofiOne/dbld-shell-improvments
Dbld shell improvments
2 parents 696d0ba + 96b6a19 commit 7c01722

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed

dbld/images/entrypoint.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ else
3434
create_user
3535
fi
3636
echo "Added new user: $USER_NAME"
37-
exec sudo --preserve-env -Hu "${USER_NAME}" "$@"
37+
exec sudo --preserve-env --preserve-env=PATH -Hu "${USER_NAME}" "$@"
3838
fi

dbld/packages.manifest

+1
Original file line numberDiff line numberDiff line change
@@ -163,3 +163,4 @@ astyle [devshell]
163163
snmptrapd [devshell]
164164
dwarves [devshell]
165165
jq [devshell]
166+
curl [devshell]

dbld/rules

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ DOCKER_RUN_ARGS=-e USER_NAME_ON_HOST=$(shell whoami) \
3939
-e CCACHE_DIR=/build/ccache \
4040
-e MODE=$(MODE) \
4141
-e VERSION=$(VERSION) \
42-
-e PATH=/usr/lib/ccache:/usr/lib64/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin \
42+
-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)) \
4343
-e GRADLE_USER_HOME=/build/gradle-home \
4444
-e GRADLE_PROJECT_CACHE_DIR=/build/gradle-cache \
4545
-e GRADLE_FLAGS=--build-cache \
@@ -56,9 +56,9 @@ GIT_RELEASE_TAG=syslog-ng-$(VERSION)
5656
CONFIGURE_OPTS=--enable-debug --enable-manpages --with-python=3 --prefix=/install $(CONFIGURE_ADD)
5757
DBLD_RULES=$(MAKE) --no-print-directory -f $(DBLD_DIR)/rules
5858

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

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

6363
help:
6464
@echo "This script allows you to build release/snapshot artifacts, such "

dbld/shell

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ if [ "$IMAGE_PLATFORM" != "devshell" ]; then
1414
echo -e "NOTE: the 'devshell' dbld image is more developer friendly, you might want to use that"
1515
fi
1616
cd /source
17-
debian_chroot="dbld" HOME=/build exec bash
17+
debian_chroot="dbld" HOME=/build exec bash -c "$*"

0 commit comments

Comments
 (0)