Merge pull request #2802 from weaveworks/issues/2761-build-chown
Make /usr/local/go writable to anyone
This commit is contained in:
commit
e9fa655e0e
2 files changed
+3
-3
No files matched your search
@@ -62,6 +62,9 @@ RUN for platform in ${GO_CROSSPLATFORMS}; do \
|
|||||||
GOOS=${platform%/*} GOARCH=${platform##*/} \
|
GOOS=${platform%/*} GOARCH=${platform##*/} \
|
||||||
go install -tags netgo std; done
|
go install -tags netgo std; done
|
||||||
|
|
||||||
|
# Allow full write access to the Go folders for anyone
|
||||||
|
RUN chmod -R a+w /usr/local/go
|
||||||
|
|
||||||
# The libpcap version from Debian packages is 1.6.2, matching that version here although newer versions of libpcap have been released
|
# The libpcap version from Debian packages is 1.6.2, matching that version here although newer versions of libpcap have been released
|
||||||
# We have to cross-compile the libpcap library for the new architectures, that's what we're doing here
|
# We have to cross-compile the libpcap library for the new architectures, that's what we're doing here
|
||||||
ENV LIBPCAP_CROSS_VERSION=1.6.2
|
ENV LIBPCAP_CROSS_VERSION=1.6.2
|
||||||
|
|||||||
@@ -25,7 +25,4 @@ echo "weave:x:$uid:$gid::$WEAVE_SRC:/bin/sh" >>/etc/passwd
|
|||||||
echo "weave:*:::::::" >>/etc/shadow
|
echo "weave:*:::::::" >>/etc/shadow
|
||||||
echo "weave ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
echo "weave ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers
|
||||||
|
|
||||||
# Allow full write access to the Go folders for the user Weave
|
|
||||||
chown -R $uid:$gid /usr/local/go
|
|
||||||
|
|
||||||
su weave -c "PATH=$PATH make -C $WEAVE_SRC BUILD_IN_CONTAINER=false $*"
|
su weave -c "PATH=$PATH make -C $WEAVE_SRC BUILD_IN_CONTAINER=false $*"
|
||||||
Reference in new issue
Block a user