forked from vleong2332/analyze-catalog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
34 lines (27 loc) · 911 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
.PHONY: build run shell update-gogs-json
SHELL := /bin/bash
edit:
${EDITOR} readme.MD makefile Dockerfile index.js *.js
build:
docker build . -t analyze-catalog
run:
test -n "$(AC_WORKING_DIR)" # $$AC_WORKING_DIR
docker run \
--rm \
--volume ${AC_WORKING_DIR}:/working \
--env LANGNAMES_URL=${LANGNAMES_URL} \
analyze-catalog
shell:
docker run \
-it \
--rm \
--volume /tmp/working:/working \
--entrypoint=/bin/bash \
analyze-catalog
update-gogs-json:
@echo "About to download the latest additional_contents.json file from PROD to data/gogs.json."; \
echo "Please enter username and password for Jenkins, or Ctrl-C to abort."; \
read -p "Username: " USERNAME; \
read -s -p "Password: " PASSWORD; \
echo; \
curl -u $$USERNAME:$$PASSWORD https://jenkins.walink.org/view/GOGS%20PROD/job/5_DW_BIEL_Feed_PROD/lastSuccessfulBuild/artifact/additional_contents.json > data/gogs.json