-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (27 loc) · 1.11 KB
/
Copy pathMakefile
File metadata and controls
37 lines (27 loc) · 1.11 KB
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
35
36
37
VERSION ?= $(shell git rev-parse --short HEAD)
IMAGE ?= fme
ENVIRONMENT_NAME ?= fme
USERNAME ?= $(shell beaker account whoami --format=json | jq -r '.[0].name')
build_docker_image:
docker build -f docker/Dockerfile -t $(IMAGE):$(VERSION) .
build_beaker_image: build_docker_image
beaker image create --name $(IMAGE)-$(VERSION) $(IMAGE):$(VERSION)
build_podman_image:
podman-hpc build -f docker/Dockerfile -t $(IMAGE):$(VERSION) .
migrate_podman_image: build_podman_image
podman-hpc migrate $(IMAGE):$(VERSION)
enter_docker_image: build_docker_image
docker run -it --rm $(IMAGE):$(VERSION) bash
launch_beaker_session:
./launch-beaker-session.sh $(USERNAME)/$(IMAGE)-$(VERSION)
install_local_packages:
./install_local_packages.sh
install_dependencies:
./install_dependencies.sh
# recommended to deactivate current conda environment before running this
create_environment:
conda create -n $(ENVIRONMENT_NAME) python=3.8 pip
conda run -n $(ENVIRONMENT_NAME) ./install_dependencies.sh
conda run -n $(ENVIRONMENT_NAME) ./install_local_packages.sh
test_fme_unit_tests:
pytest -m "not requires_gpu" --durations 10 fme/