#
# 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
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
$(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
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.
#### 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.