2. Create a container dir
Use this command to create the container directory:
/var/test # ds init scripts1 @./app1 Container initialized on '/var/test/app1/'. /var/test # tree app1 app1 └── settings.sh /var/test # cat app1/settings.sh APP=/var/test/scripts1 IMAGE=scripts1 CONTAINER=app1
The command ds init
creates a directory for the container at
./app1/
, copies settings.sh
to it, and modifies the
values of APP
, IMAGE
and CONTAINER
. The setting APP
tells
where the scripts for this container are located, IMAGE
is the name
of the docker image that will be built for this container (set by
default to the name of the scripts directory), and CONTAINER
is
the name of the container (set by default to the name of the
container's directory).
You can edit settings.sh
and modify IMAGE
and CONTAINER
,
if you wish, but you should not change the value of APP
, otherwise
the framework will not be able to find the correct Dockerfile and any
other scripts related to this container.