Skip to content

Commit

Permalink
move input.json from bootstrap to agent
Browse files Browse the repository at this point in the history
Fixes #9

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
  • Loading branch information
glimchb committed Oct 14, 2022
1 parent 4af2302 commit 0da5efe
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ docker-compose exec bootstrap curl -i --user my-admin@example.com:my-secret -H "
Get onboarding info (from device perspective)

```text
$ docker-compose exec -T bootstrap curl -X POST --data @/tmp/input.json -H Content-Type:application/yang-data+json --user my-serial-number:my-secret --key client/end-entity/private_key.pem --cert client/end-entity/my_cert.pem --cacert /opi.pem https://bootstrap:9090/restconf/operations/ietf-sztp-bootstrap-server:get-bootstrapping-data | tee /tmp/post_rpc_input.json
$ docker-compose exec -T agent curl -X POST --data @/tmp/input.json -H Content-Type:application/yang-data+json --user my-serial-number:my-secret --key client/end-entity/private_key.pem --cert client/end-entity/my_cert.pem --cacert /opi.pem https://bootstrap:9090/restconf/operations/ietf-sztp-bootstrap-server:get-bootstrapping-data | tee /tmp/post_rpc_input.json
{
"ietf-sztp-bootstrap-server:output": {
Expand Down
2 changes: 0 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ services:
image: ghcr.io/opiproject/opi-sztp-simulator:main
build:
context: sztp-simulator
volumes:
- ./sztp-server/config/input.json:/tmp/input.json:Z,ro
networks:
- opi
command: ['/bin/sh', '-c', 'sleep infinity']
Expand Down
3 changes: 2 additions & 1 deletion sztp-simulator/.dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
*
*
!input.json
2 changes: 2 additions & 0 deletions sztp-simulator/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ FROM docker.io/library/python:3.10.8-slim

RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*

COPY ./input.json /tmp/

# hadolint ignore=DL3022
COPY --from=ghcr.io/opiproject/opi-sztp-server:main /opi.pem /opi.pem
# hadolint ignore=DL3022
Expand Down
File renamed without changes.

0 comments on commit 0da5efe

Please sign in to comment.