-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Frank Kriete
committed
Oct 13, 2021
1 parent
ff5d4aa
commit a04f0c6
Showing
2 changed files
with
72 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
node_modules | ||
.DS_Store | ||
**/*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
######################################### | ||
######################################### | ||
### Dockerfile to run some Some Build ### | ||
######################################### | ||
######################################### | ||
|
||
# This is a copy of the GitHub Action runner | ||
FROM myoung34/github-runner:latest | ||
|
||
######################################### | ||
# Variables # | ||
######################################### | ||
ARG orgname="githubschool" | ||
ARG reponame="github-actions-training-fjk211" | ||
|
||
######################################### | ||
# Label the instance and set maintainer # | ||
######################################### | ||
LABEL com.github.actions.name="Some Image" \ | ||
com.github.actions.description="Its a build image" \ | ||
com.github.actions.icon="code" \ | ||
com.github.actions.color="red" \ | ||
maintainer="GitHub DevOps <[email protected]>" \ | ||
org.opencontainers.image.authors="GitHub DevOps <[email protected]>" \ | ||
org.opencontainers.image.url="https://github.com/${orgname}/${reponame}" \ | ||
org.opencontainers.image.source="https://github.com/${orgname}/${reponame}" \ | ||
org.opencontainers.image.documentation="https://github.com/${orgname}/${reponame}" \ | ||
org.opencontainers.image.vendor="GitHub" \ | ||
org.opencontainers.image.description="Its a build image" | ||
|
||
######################################## | ||
# Copy dependencies files to container # | ||
######################################## | ||
COPY dependencies/* / | ||
|
||
# ################################ | ||
# # Installs python dependencies # | ||
# ################################ | ||
# RUN pip3 install --no-cache-dir pipenv | ||
# # Bug in hadolint thinks pipenv is pip | ||
# # hadolint ignore=DL3042 | ||
# RUN pipenv install --clear --system | ||
|
||
# #################### | ||
# # Run NPM Installs # | ||
# #################### | ||
# RUN npm config set package-lock false \ | ||
# && npm config set loglevel error \ | ||
# && npm --no-cache install | ||
# # Add node packages to path | ||
# ENV PATH="/node_modules/.bin:${PATH}" | ||
|
||
# ############################## | ||
# # Installs ruby dependencies # | ||
# ############################## | ||
# RUN bundle install | ||
|
||
###################### | ||
# Make the directory # | ||
###################### | ||
RUN mkdir -p /action/lib | ||
|
||
############################# | ||
# Copy scripts to container # | ||
############################# | ||
COPY library /action/lib | ||
|
||
###################### | ||
# Set the entrypoint # | ||
###################### | ||
ENTRYPOINT ["/action/lib/entrypoint.sh"] |