Skip to content

Commit

Permalink
fixed makefile for building sliderule docker
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Sep 28, 2024
1 parent dc10121 commit c91f02f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions targets/slideruleearth-aws/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ CSHELPH_VERSION = $(shell git --work-tree ${CSHELPH_SOURCE_DIR} --git-dir ${CSHE
MEDIANFILTER_SOURCE_DIR ?= $(ROOT)/../ut-ATL24-medianfilter
MEDIANFILTER_SOURCE_FILE = $(MEDIANFILTER_SOURCE_DIR)/medianmodel.py
MEDIANFILTER_VERSION = $(shell git --work-tree ${MEDIANFILTER_SOURCE_DIR} --git-dir ${MEDIANFILTER_SOURCE_DIR}/.git describe --abbrev --dirty --always --tags --long)
COASTNET_DIR = $(ROOT)/../ut-ATL24-coastnet
QTREES_DIR = $(ROOT)/../ut-ATL24-qtrees
OPENOCEANSPP_DIR = $(ROOT)/../ut-ATL24-oopp

INSTALLDIR ?= $(SLIDERULE_STAGE_DIR)

Expand Down Expand Up @@ -215,6 +218,9 @@ sliderule-docker: ## build sliderule docker image using buildenv container; need
-rm -Rf $(SLIDERULE_STAGE_DIR)
mkdir -p $(SLIDERULE_STAGE_DIR)
rsync -a $(ROOT) $(SLIDERULE_STAGE_DIR)/sliderule --exclude build --exclude stage
rsync -a $(COASTNET_DIR) $(SLIDERULE_STAGE_DIR) --exclude models
rsync -a $(QTREES_DIR) $(SLIDERULE_STAGE_DIR) --exclude models
rsync -a $(OPENOCEANSPP_DIR) $(SLIDERULE_STAGE_DIR)
cp docker/sliderule/Dockerfile.runtime $(SLIDERULE_STAGE_DIR)/Dockerfile
cp docker/sliderule/config.json $(SLIDERULE_STAGE_DIR)
cd $(SLIDERULE_STAGE_DIR); docker $(BUILDX) build $(DOCKEROPTS) --build-arg repo=$(ECR) -t $(ECR)/sliderule:latest $(DOCKER_PLATFORM) .
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM $repo/sliderule-buildenv:latest AS buildenv

# copy sliderule source repository
COPY sliderule /sliderule
COPY ut-ATL24-coastnet /ut-ATL24-coastnet
COPY ut-ATL24-qtrees /ut-ATL24-qtrees
COPY ut-ATL24-oopp /ut-ATL24-oopp

# build and install sliderule application
WORKDIR /sliderule/targets/slideruleearth-aws
Expand Down

0 comments on commit c91f02f

Please sign in to comment.