k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 1 | FROM onap/base_sdc-python:1.7.0 |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 2 | |
k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 3 | # user/group args are inherited from base_sdc-python base image |
| 4 | COPY --chown=$user:$group scripts /home/$user/scripts |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 5 | |
k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 6 | RUN chmod 770 -R /home/$user/scripts && \ |
| 7 | cd /home/$user/scripts && \ |
| 8 | python setup.py install --user |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 9 | |
k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 10 | ENV PATH=$PATH:/home/$user/.local/bin |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 11 | |
k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 12 | COPY --chown=$user:$group chef-solo /home/$user/chef-solo/ |
Yuli Shlosberg | 958c32d | 2018-02-15 12:04:46 +0200 | [diff] [blame] | 13 | |
k.kedron | cb30f3a | 2020-03-05 13:12:27 +0100 | [diff] [blame] | 14 | COPY --chown=$user:$group chef-repo/cookbooks /home/$user/chef-solo/cookbooks/ |
| 15 | |
| 16 | COPY --chown=$user:$group startup.sh /home/$user/ |
| 17 | |
| 18 | RUN chmod 770 /home/$user/startup.sh |
| 19 | |
| 20 | WORKDIR /home/$user/ |
| 21 | |
| 22 | ENTRYPOINT /home/${user}/startup.sh |