Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Prada Sarasola, Miguel
templates
Commits
dc771e9d
Commit
dc771e9d
authored
Feb 08, 2019
by
Prada Sarasola, Miguel
Browse files
TMP layout of deployment script and dockerfile using comments
parent
07bf329d
Changes
4
Hide whitespace changes
Inline
Side-by-side
deploy/Dockerfile
0 → 100644
View file @
dc771e9d
FROM
industrial_ci_image
COPY
./ros_entrypoint.bash /
ENTRYPOINT
["/ros_entrypoint.bash"]
CMD
["bash"]
deploy/ros_entrypoint.bash
0 → 100644
View file @
dc771e9d
#!/bin/bash
set
-e
# setup application environment
source
"/root/catkin_ws/install/setup.bash"
exec
"
$@
"
scripts/deploy.bash
0 → 100644
View file @
dc771e9d
#!/bin/bash
set
-e
cd
$(
mktemp
-d
)
# download deployment files
wget foo/bar/Dockerfile
wget foo/bar/ros_entrypoint.bash
# build deployment image
docker build
-t
${
CI_PROJECT_NAME
}
:
${
CI_COMMIT_REF_NAME
}
.
# push deployment dockerfile
docker push
${
CI_PROJECT_NAME
}
:
${
CI_COMMIT_REF_NAME
}
scripts/pre-deploy-cleanup.bash
0 → 100644
View file @
dc771e9d
#!/bin/bash
set
-e
rm
-rf
/root/catkin_ws/build /root/catkin_ws/devel /root/catkin_ws/src /root/ici /root/src
# Unset env vars?
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment