Commit 46bca09
committed
fix(Makefile): only install data containers if they don't exist
Since we are scheduling data containers to specific machines (and
the machine we choose is random each time), we want to be careful
about when we regenerate and resubmit these units.
This commit makes `make install` (and thus `make run`) safe to
run multiple times again since they will now only submit data containers if they don't
already exist.
TESTING: run `make install` multiple times and ensure the units are there when they should
be, and not resubmitted otherwise
```console
$ make uninstall
```
```console
$ make install
Job deis-router.1.service loaded on e35efc85.../172.17.8.100
Job deis-builder-data.service loaded on e35efc85.../172.17.8.100
Job deis-database-data.service loaded on e35efc85.../172.17.8.100
Job deis-logger-data.service loaded on e35efc85.../172.17.8.100
Job deis-registry-data.service loaded on e35efc85.../172.17.8.100
fleetctl --strict-host-key-checking=false load registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
Job deis-logger.service loaded on e35efc85.../172.17.8.100
Job deis-registry.service loaded on e35efc85.../172.17.8.100
Job deis-cache.service loaded on e35efc85.../172.17.8.100
Job deis-database.service loaded on e35efc85.../172.17.8.100
fleetctl --strict-host-key-checking=false load controller/systemd/*.service
Job deis-controller.service loaded on e35efc85.../172.17.8.100
fleetctl --strict-host-key-checking=false load builder/systemd/*.service
Job deis-builder.service loaded on e35efc85.../172.17.8.100
```
```console
$ make install
deis-builder-data.service already loaded. Skipping...
deis-database-data.service already loaded. Skipping...
deis-logger-data.service already loaded. Skipping...
deis-registry-data.service already loaded. Skipping...
fleetctl --strict-host-key-checking=false load registry/systemd/deis-registry.service logger/systemd/deis-logger.service cache/systemd/deis-cache.service database/systemd/deis-database.service
fleetctl --strict-host-key-checking=false load controller/systemd/*.service
fleetctl --strict-host-key-checking=false load builder/systemd/*.service
```1 parent a12c6eb commit 46bca09
1 file changed
Lines changed: 15 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
60 | 64 | | |
61 | 65 | | |
62 | 66 | | |
| |||
0 commit comments