diff options
author | Harald Welte <laforge@gnumonks.org> | 2020-12-17 14:36:24 +0000 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-12-17 15:37:15 +0100 |
commit | bd4e9c2d9d5ff05baabbd0faa8710c999076e02c (patch) | |
tree | 3edee44706e2705c15cd741a2c3a155d9585873d | |
parent | 7500aebce7715481b76cf980d0488b80015fcd69 (diff) |
fpga-build: Create 'build' user like in 'debian-stretch-jenkins'
Change-Id: Id99167568751b19f3454831e69eacdbadaf8aee4
-rw-r--r-- | fpga-build/Dockerfile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fpga-build/Dockerfile b/fpga-build/Dockerfile index 620657a..8a19dfe 100644 --- a/fpga-build/Dockerfile +++ b/fpga-build/Dockerfile @@ -29,8 +29,9 @@ RUN wget --quiet https://github.com/xpack-dev-tools/riscv-none-embed-gcc-xpack/r RUN tar -C /opt -xf /xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz && \ rm xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}-linux-x64.tar.gz -RUN useradd -m osmocom -USER osmocom -WORKDIR /home/osmocom +# match the outside user +RUN useradd --uid=1000 build +RUN mkdir /build +RUN chown build:build /build ENV PATH=/opt/fpga-toolchain/bin:/opt/xpack-riscv-none-embed-gcc-${RISCV_TOOLCHAIN_VER}/bin:${PATH} |