Update package build
authorPeter Amstutz <peter.amstutz@curii.com>
Wed, 18 Dec 2019 19:21:23 +0000 (14:21 -0500)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 18 Dec 2019 19:21:23 +0000 (14:21 -0500)
no issue #

Arvados-DCO-1.1-Signed-off-by: Peter Amstutz <peter.amstutz@curii.com>

Dockerfile
Makefile
README.md

index 8f33282d7fd29a83fe826cce807df6ee9a3cd7a8..6f4fe7e16ae09cd799f54dcd4a95eb9ff270ee3d 100644 (file)
@@ -2,7 +2,7 @@
 #
 # SPDX-License-Identifier: AGPL-3.0
 
 #
 # SPDX-License-Identifier: AGPL-3.0
 
-FROM node:latest
+FROM node:8-buster
 MAINTAINER Ward Vandewege <ward@curoverse.com>
 RUN apt-get update
 RUN apt-get -q -y install libsecret-1-0 libsecret-1-dev rpm
 MAINTAINER Ward Vandewege <ward@curoverse.com>
 RUN apt-get update
 RUN apt-get -q -y install libsecret-1-0 libsecret-1-dev rpm
index 669fdda9f643b45e8b1dada54d60b98c61b60179..d90d8e81bad622a86a9bc3e61b8652c5c95960e2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -42,7 +42,7 @@ RPM_FILE=$(APP_NAME)-$(VERSION)-$(ITERATION).x86_64.rpm
 
 export WORKSPACE?=$(shell pwd)
 
 
 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
 
 help:
        @echo >&2
@@ -106,7 +106,8 @@ $(RPM_FILE): build
         $(WORKSPACE)/build/=$(DEST_DIR)
 
 copy: $(DEB_FILE) $(RPM_FILE)
         $(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
                if [[ $$target =~ ^centos ]]; then
                        cp -p $(RPM_FILE) packages/$$target ; \
                else
index e2e14ce47e06f7fc5ddc67b1732419f60d071a07..8e720520aa4dec15d6ab089cd46b551d0235d794 100644 (file)
--- a/README.md
+++ b/README.md
@@ -26,6 +26,12 @@ yarn install
 yarn build
 </pre>
 
 yarn build
 </pre>
 
+### Package build
+<pre>
+docker build -t arvados/fpm .
+docker run -v$PWD:$PWD -w $PWD arvados/fpm make packages
+</pre>
+
 ### Build time configuration
 You can customize project global variables using env variables. Default values are placed in the `.env` file.
 
 ### 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
 
 
 #### 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
 
 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.
 [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.