From: Peter Amstutz Date: Wed, 18 Dec 2019 19:21:23 +0000 (-0500) Subject: Update package build X-Git-Tag: 2.0.0~18 X-Git-Url: https://git.arvados.org/arvados-workbench2.git/commitdiff_plain/76fa562c91e96ff7f128d8eba0785c2ee4a606cc Update package build no issue # Arvados-DCO-1.1-Signed-off-by: Peter Amstutz --- diff --git a/Dockerfile b/Dockerfile index 8f33282d..6f4fe7e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # # SPDX-License-Identifier: AGPL-3.0 -FROM node:latest +FROM node:8-buster MAINTAINER Ward Vandewege RUN apt-get update RUN apt-get -q -y install libsecret-1-0 libsecret-1-dev rpm diff --git a/Makefile b/Makefile index 669fdda9..d90d8e81 100644 --- a/Makefile +++ b/Makefile @@ -42,7 +42,7 @@ RPM_FILE=$(APP_NAME)-$(VERSION)-$(ITERATION).x86_64.rpm export WORKSPACE?=$(shell pwd) -.PHONY: help clean* yarn-install test build packages packages-with-version +.PHONY: help clean* yarn-install test build packages packages-with-version help: @echo >&2 @@ -106,7 +106,8 @@ $(RPM_FILE): build $(WORKSPACE)/build/=$(DEST_DIR) copy: $(DEB_FILE) $(RPM_FILE) - for target in $(TARGETS); do \ + mkdir packages + for target in $^ ; do \ if [[ $$target =~ ^centos ]]; then cp -p $(RPM_FILE) packages/$$target ; \ else diff --git a/README.md b/README.md index e2e14ce4..8e720520 100644 --- a/README.md +++ b/README.md @@ -26,6 +26,12 @@ yarn install yarn build +### Package build +
+docker build -t arvados/fpm .
+docker run -v$PWD:$PWD -w $PWD arvados/fpm make packages
+
+ ### Build time configuration You can customize project global variables using env variables. Default values are placed in the `.env` file. @@ -48,12 +54,12 @@ Currently this configuration schema is supported: #### API_HOST -The Arvados base URL. +The Arvados base URL. The `REACT_APP_ARVADOS_API_HOST` environment variable can be used to set the default URL if the run time configuration is unreachable. #### VOCABULARY_URL -Local path, or any URL that allows cross-origin requests. See +Local path, or any URL that allows cross-origin requests. See [Vocabulary JSON file example](public/vocabulary-example.json). To use the URL defined in the Arvados cluster configuration, remove the entire `VOCABULARY_URL` entry from the runtime configuration. Found in `/config.json` by default.