1# This image is used in place of circleci Virtual machines or docker images. 2# This alternative usage allows more portability, and provides convenient local 3# execution using the circleci CLI. If you want to avail of this install the 4# client locally: 5# 6# https://circleci.com/docs/2.0/local-cli/ 7# 8# Find the names of the various jobs that you can execute by observing the 9# fully resolved circleci configuration. This can be viewed (look for the most 10# unindented entries in the jobs section) by running the following command from 11# the base AFNI directory: 12# 13# circleci config process .circleci/config.yml 14# 15# Finally, to run a job locally: 16# 17# circleci local execute cmake_build 18# 19# The above command will download an image from AFNI's dockerhub account 20# 21FROM alpine:3.12 22 23RUN apk add bash curl docker-cli docker-py git pigz py3-pytest python3 openssh shadow 24 25# The following doesn't work. Root permission is required for local execution 26# (both to access the repository stored in a /tmp directory that is mounted in 27# from the host as well as to contact the docker socket 28# RUN adduser -u 3434 -D circleci && \ 29# echo "circleci ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/circleci && \ 30# chmod 0440 /etc/sudoers.d/circleci 31#USER circleci 32 33#ENTRYPOINT /bin/bash 34# CMD /bin/bash 35