Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Camp.yml template is not according docker descriptors on Citygo use case #80

Closed
fermenreq opened this issue Sep 30, 2019 · 1 comment
Closed
Assignees

Comments

@fermenreq
Copy link

Characteristics

  • Issue Type: feature
  • Reproducibility: always
  • Severity: crash
  • Tool/Service/Component:

CAMP v0.6.2-git.bb86759 (MIT)
Copyright (C) 2017 -- 2019 SINTEF Digital

Description

Have to set up camp.yml according Citygo docker descriptors dependencies.

root@osboxes:/home/osboxes/Desktop/STAMP/camp/samples/stamp/atos# tree -L 3
.
├── camp.yml
├── Citygo
│   ├── apache
│   │   ├── demo_site.conf
│   │   ├── docker-compose.yml
│   │   ├── Dockerfile
│   │   ├── mpm_event.conf
│   │   └── requirements.txt
│   ├── app
│   │   └── backend
│   ├── nginx
│   │   ├── docker-compose.yml
│   │   └── nginx
│   ├── Postgres
│   │   ├── Dockerfile
│   │   ├── init-db.sql
│   │   └── postgresql.conf
│   └── Tests
│   └── citygo_tests
├── README.md
└── template
├── apache
│   ├── demo_site.conf
│   ├── Dockerfile
│   └── mpm_event.conf
├── browser
│   ├── Dockerfile
│   └── tests.py
├── citygo
│   └── Dockerfile
├── docker-compose-apache-as-proxy.yml
├── docker-compose-apache.yml
├── docker-compose-nginx.yml
├── nginx
│   ├── Dockerfile
│   └── nginx.tmpl
├── postgres
│   ├── Dockerfile
│   ├── init-db.sql
│   └── postgresql.conf
└── python
└── Dockerfile

16 directories, 26 files

Steps to reproduce

docker exec -i camp sh -c cd samples/stamp/atos/ && camp realize -d . && cp -R out/ /stamp_docker_citygoApp/
CAMP v0.6.2-git.bb86759 (MIT)
Copyright (C) 2017 -- 2019 SINTEF Digital

Loaded './camp.yml'.
Loading configurations from './out' ...

Error:
Vain substitution: No match found!'
pattern: 'FROM\s+camp/[a-zA-Z0-9.-]+(?::[a-zA-Z0-9.-]+)?'
target file: './out/config_1/images/citygo_0/Dockerfile'
Is the pattern appropriate? What about the file content?

That's all folks!
exit

Other files and URLs

Relationships Citygo

Help on issue template

Preview to follow the link or open file .github/ISSUE_DOC.md

@fchauvel
Copy link
Member

Hi,

I just adjust the docker-compose files that were still referencing a component named dashboard, instead of the component named citygo. I see as well that several Dockerfile are still empty or with some simple instructions I placed there (see the README file). Unfortunately, without the source code I don't know how to further help debugging the camp execute part.

As for the two alternative cases, one being on performance tests and the other on functional tests, I created two subdirectories in the samples/stamp/atos directory. I created the templates I believe are relevant, but I would be grateful if you could check to ensure we have a shared understanding here.

Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants