In this tutorial we will create Poco Project, add it to our Poco Repo,
for this we will use simple nginx to serve our source html.
Before we start lets init git repository:
$:~ mkdir poco-hello-world
When git repository is ready lets add some source files to our project first,
so we will be able to see that our ngnix server is workink correctly.
index.html file inside
We recommend to split docker-compose files by services (one file - one service),
this will help to make project more flexible.
dc-nginx.yaml file inside
/docker folder and map our source folder:
Let’s adjust a little bit our nginx server so it better suit to our needs.
nginx.conf file in
To tell our nginx server to use our config file we need to map it in our
When docker compose is ready we can add it to our
Finally we can check our project:
$:~ poco up
Open “http://localhost" in your browser, if everything is ok you should see “Hello World!”.
Create remote git repository on Github, Gitlab or Bitbucket, add it to your local Poco config:
$:~ poco repo add default https://git-repository-url
If everything is ok you should see something like this:
Now we can add our project to Poco Repo, run this command in root folder of the project:
$:~ poco project add . default
When your project is added you can publish your Poco Repo:
$:~ poco repo push
You can try Poco Hello World Example project. Just add Poco Repo:
$:~ poco repo add poco-examples firstname.lastname@example.org:shiwaforce/poco-examples.git
List out all available projects:
$:~ poco project ls
Run Poco Hello World Project:
$:~ poco up poco-example-hello-world