Skip to content

Commit

Permalink
Update docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
rsms committed Oct 23, 2019
1 parent 88f43cc commit 44dafda
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
1 change: 1 addition & 0 deletions misc/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ COPY . /inter/
RUN rm Dockerfile

RUN ln -s /host/src src \
&& ln -s /host/misc misc \
&& ln -s /host/version.txt . \
&& ln -s /host/githash.txt . \
&& ln -s /host/Makefile . \
Expand Down
21 changes: 12 additions & 9 deletions misc/docker/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,25 @@ IMAGE_NAME=rsms/inter-build
BUILD_DIR=$ROOT_DIR/build/docker

# setup build dir
mkdir -p "$BUILD_DIR/misc/tools"
mkdir -p "$BUILD_DIR/misc/tools" "$BUILD_DIR/misc/fontbuildlib"

# copy files to build dir
echo "Syncing build dir"
cp -a \
init.sh \
requirements.txt \
"$DOCKER_DIR/Dockerfile" \
"$BUILD_DIR/" &
rsync -v -acC --delete --filter="- *.pyc" --filter="- /*/" \
"misc/tools/" \
"$BUILD_DIR/misc/tools/" &
rsync -v -acC --delete \
misc/fontbuild \
misc/ttf2woff \
"$BUILD_DIR/misc/"
"$BUILD_DIR/"
# rsync -v -acC --delete --filter="- *.pyc" --filter="- /*/" \
# "misc/tools/" \
# "$BUILD_DIR/misc/tools/" &
# rsync -v -acC --delete --filter="- *.pyc" --filter="- /*/" \
# "misc/fontbuildlib/" \
# "$BUILD_DIR/misc/fontbuildlib/" &
# rsync -v -acC --delete \
# misc/fontbuild \
# misc/ttf2woff \
# "$BUILD_DIR/misc/"
wait

# update githash.txt
Expand Down

0 comments on commit 44dafda

Please sign in to comment.