Verified Commit 30cf01bb authored by Diego Hernandes's avatar Diego Hernandes
Browse files

remove jobs fix

parent b7e77ec8
......@@ -55,13 +55,11 @@ RUN adduser -D -u 1000 sandbox && \
ln -s /var/cache/apk /etc/apk/cache && \
echo "sandbox ALL = ( ALL ) NOPASSWD: ALL" >> /etc/sudoers && \
echo "Set disable_coredump false" >> /etc/sudo.conf && \
sed -i "/export JOBS=.*/c\export JOBS=$(cat /proc/cpuinfo | grep '^processor\s*:\s[0-9]*$' | wc -l)" /etc/abuild.conf && \
sed -i "/#USE_CCACHE=.*/c\USE_CCACHE=1" /etc/abuild.conf && \
sed -i "/#PACKAGER=.*/c\PACKAGER=\"${APK_PACKAGER}\"" /etc/abuild.conf && \
sed -i "/#MAINTAINER=.*/c\MAINTAINER=\"${APK_MAINTAINER}\"" /etc/abuild.conf && \
echo 'export PATH="/opt/php-alpine/bin:$PATH"' > /etc/profile.d/php-bin.sh && \
chown -R sandbox:sandbox /home/sandbox && \
chown -R sandbox:sandbox /opt/php-alpine && \
echo 'export PATH="/opt/php-alpine/bin:$PATH"' > /etc/profile.d/php-bin.sh
chown -R sandbox:sandbox /opt/php-alpine
# required for running "aports-build" tool.
RUN mkdir -p /var/run/mqtt-exec.aports-build && \
......
......@@ -11,9 +11,9 @@ sudo chmod u=rw,go=r /etc/apk/keys/php-alpine.rsa.pub
sudo chown -R sandbox:sandbox /home/sandbox
# determine cpu count.
ABUILD_JOBS=$(grep -c '^processor\s*:\s[0-9]*$' < /proc/cpuinfo)
# ABUILD_JOBS=$(grep -c '^processor\s*:\s[0-9]*$' < /proc/cpuinfo)
# configure JOBS variable as cpu count on abuild.conf file.
sudo sed -i "/export JOBS=.*/c\export JOBS=$ABUILD_JOBS" /etc/abuild.conf
# sudo sed -i "/export JOBS=.*/c\export JOBS=$ABUILD_JOBS" /etc/abuild.conf
# source env files generated during docker build.
if [ -f ~/.build_env ]; then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment