Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ install:
-cp -r ./src/settings.yaml /etc/containers/systemd/piccolo/
-cp -r ./containers/piccolo-*.* /etc/containers/systemd/piccolo/
systemctl daemon-reload
systemctl start piccolo-server
systemctl start piccolo-agent
systemctl start piccolo-player
systemctl start piccolo-server

.PHONY: uninstall
uninstall:
Expand Down
14 changes: 7 additions & 7 deletions containers/piccolo-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ spec:
hostNetwork: true
hostPid: true
containers:
- name: etcd
image: gcr.io/etcd-development/etcd:v3.5.11
command: ["/usr/local/bin/etcd"]
args: ["--data-dir=/etcd-data"]
volumeMounts:
- name: etcd-data
mountPath: /etcd-data
- name: apiserver
image: localhost/pullpiri-server:latest
command: ["/piccolo/apiserver"]
Expand All @@ -23,13 +30,6 @@ spec:
- name: policymanager
image: localhost/pullpiri-server:latest
command: ["/piccolo/policymanager"]
- name: etcd
image: gcr.io/etcd-development/etcd:v3.5.11
command: ["/usr/local/bin/etcd"]
args: ["--data-dir=/etcd-data"]
volumeMounts:
- name: etcd-data
mountPath: /etcd-data
- name: monitoringserver
image: localhost/pullpiri-server:latest
command: ["/piccolo/monitoringserver"]
Expand Down
3 changes: 2 additions & 1 deletion examples/helloworld.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

BODY=$(< ./resources/helloworld.yaml)
#BODY=$(< ./resources/helloworld.yaml)
BODY=$(< ./resources/helloworld_no_condition.yaml)

curl --location 'http://0.0.0.0:47099/api/artifact' \
--header 'Content-Type: text/plain' \
Expand Down
41 changes: 41 additions & 0 deletions examples/resources/helloworld_no_condition.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
apiVersion: v1
kind: Scenario
metadata:
name: helloworld
spec:
condition: null
action: update
target: helloworld
---
apiVersion: v1
kind: Package
metadata:
label: null
name: helloworld
spec:
pattern:
- type: plain
models:
- name: helloworld
node: HPC
resources:
volume:
network:
---
apiVersion: v1
kind: Model
metadata:
name: helloworld
annotations:
io.piccolo.annotations.package-type: helloworld
io.piccolo.annotations.package-name: helloworld
io.piccolo.annotations.package-network: default
labels:
app: helloworld
spec:
hostNetwork: true
containers:
- name: helloworld
image: quay.io/podman/hello:latest
terminationGracePeriodSeconds: 0
restartPolicy: Never