FROM almalinux:9 ### Add the User to this Container that Runs the Application on the Application Container RUN adduser -l -u "USER_ID" "USER_NAME" ############ vFunction COPY workflow ############ ### Find-and-replace ARTIFACT_REPOSITORY with the actual location COPY /ARTIFACT_REPOSITORY/vfunction/vfunction-controller-sudo-less-installation*.tgz /shared/vfunction-controller-sudo-less-installation.tgz ############ vFunction Environment Variables ############ ### Modify the value to be this Application's Identifier for the VF Server UI, e.g. qa-container ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_NAME=CHANGE_ME ### Modify the value to be the URL of the vFunction Server ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_HOST=CHANGE_ME ### Gather this value from the vFunction Server UI's Learning > Select Controllers > Installation Instructions ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_ORG_ID=CHANGE_ME ### Gather this value from the vFunction Server UI's Learning > Select Controllers > Installation Instructions ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_APP_ID=CHANGE_ME ### Gather this value from the vFunction Server UI's Learning > Select Controllers > Installation Instructions ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_CLIENT_ID=CHANGE_ME ### Gather this value from the vFunction Server UI's Learning > Select Controllers > Installation Instructions ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_CLIENT_SECRET=CHANGE_ME ### Use a unique string for this value, e.g. Containerized, to help the vFunction Server manage when this Container goes up and down ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_INSTANCE_ID=CHANGE_ME ### Use Tags to organize Agents by functionality, environment or other logical groupings ENV VF_CONTROLLER_DEFAULT_DOTNET_CONTROLLER_TAGS="CHANGE_ME,CHANGE_ME" ############ vFunction RUN workflow ############ RUN cd /BASE_DIR && tar zxvf /shared/vfunction-controller-sudo-less-installation.tgz && \ rm -rf /shared/vfunction-controller-sudo-less-installation.tgz && \ bash /shared/vfunction/opt/vfunction/controller-installation/install.sh -i default-dotnet && \ mv /shared/vfunction /tmp/ chmod -R 777 /tmp/vfunction && \ ### Replace APP_USER:APP_GROUP with the user and user's group that runs the Application chown -R APP_USER:APP_GROUP /tmp/vfunction ### Replace USER_ID with the user that runs the Application USER USER_ID ENTRYPOINT ["/bin/sh"] CMD ["sleep 5"]