Skip to content
This repository has been archived by the owner on Mar 3, 2023. It is now read-only.

Commit

Permalink
Joshfischer/update site build (#3509)
Browse files Browse the repository at this point in the history
* remove user params

* adjust user settings

* adjust user settings

* adjust path

* clean up whitespace
  • Loading branch information
joshfischer1108 committed Apr 13, 2020
1 parent c024da2 commit 32d3051
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
11 changes: 2 additions & 9 deletions website2/website/scripts/Dockerfile.ubuntu18.04
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,10 @@ RUN apt-get update && apt-get install -y nodejs

ENV JAVA_HOME /usr/lib/jvm/java-11-openjdk-amd64

ARG UNAME
ARG UID
ARG GID
RUN groupadd -g $GID -o $UNAME
RUN useradd -m -u $UID -g $GID -o -s /bin/bash $UNAME
USER $UNAME

RUN wget -O /tmp/bazel.sh https://github.com/bazelbuild/bazel/releases/download/$bazelVersion/bazel-$bazelVersion-installer-linux-x86_64.sh \
&& chmod +x /tmp/bazel.sh \
&& /tmp/bazel.sh --user

ADD bazelrc /home/$UNAME/.bazelrc
ENV PATH="/home/$UNAME/bin:${PATH}"
ADD bazelrc /root/.bazelrc
ENV PATH="/root/bin:${PATH}"

8 changes: 0 additions & 8 deletions website2/website/scripts/compile-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ copy_bazel_rc_to() {
cp $PROJECT_DIR/../tools/docker/bazel.rc $1
}



TARGET_PLATFORM="ubuntu18.04"
DOCKER_FILE=$(dockerfile_path_for_platform $TARGET_PLATFORM)
verify_dockerfile_exists $DOCKER_FILE
Expand All @@ -54,16 +52,10 @@ echo $DOCKER_FILE

echo "Building heron-compiler container"
docker build \
--build-arg UNAME=$USER \
--build-arg UID=$(id -u ${USER}) \
--build-arg GID=$(id -g ${USER}) \
-t heron-compiler:$TARGET_PLATFORM -f $DOCKER_FILE .


docker run \
--rm \
-u `id -u`:`id -g` \
-v $PROJECT_DIR/..:/home/$USER/heron \
-v /etc/passwd:/etc/passwd \
-t heron-compiler:$TARGET_PLATFORM make -C /home/$USER/heron/website2/website/ buildsite

0 comments on commit 32d3051

Please sign in to comment.