blob: 3ffcbe691aa09d50357513d78ebbd019cc693bcb [file] [log] [blame]
k.kedroncb30f3a2020-03-05 13:12:27 +01001FROM onap/base_sdc-python:1.7.0
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02002
k.kedroncb30f3a2020-03-05 13:12:27 +01003# user/group args are inherited from base_sdc-python base image
4COPY --chown=$user:$group scripts /home/$user/scripts
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02005
k.kedroncb30f3a2020-03-05 13:12:27 +01006RUN chmod 770 -R /home/$user/scripts && \
7 cd /home/$user/scripts && \
8 python setup.py install --user
Yuli Shlosberg958c32d2018-02-15 12:04:46 +02009
k.kedroncb30f3a2020-03-05 13:12:27 +010010ENV PATH=$PATH:/home/$user/.local/bin
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020011
k.kedroncb30f3a2020-03-05 13:12:27 +010012COPY --chown=$user:$group chef-solo /home/$user/chef-solo/
Yuli Shlosberg958c32d2018-02-15 12:04:46 +020013
k.kedroncb30f3a2020-03-05 13:12:27 +010014COPY --chown=$user:$group chef-repo/cookbooks /home/$user/chef-solo/cookbooks/
15
16COPY --chown=$user:$group startup.sh /home/$user/
17
18RUN chmod 770 /home/$user/startup.sh
19
20WORKDIR /home/$user/
21
22ENTRYPOINT /home/${user}/startup.sh