Skip to content

Commit

Permalink
Remove python versions from ci image and split copy
Browse files Browse the repository at this point in the history
  • Loading branch information
feelepxyz committed Apr 13, 2021
1 parent df6d5d3 commit f480838
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 15 deletions.
28 changes: 21 additions & 7 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,22 @@
/.bundle
/.core-bash_history
/.env
/.envrc
/.git
/tmp/
/helpers
/spec
gitignored
/bundler/helpers/helpers/
/python/helpers/helpers/
/.vscode-server-insiders/
/.vscode-server/
/.vscode/
/dependabot-*.gem
/dry-run
/pkg
/vendor
/tmp
**/.bundle
**/coverage
**/Gemfile.lock
**/helpers
**/node_modules
!**/spec/fixtures/*
git.store
.byebug_history
.DS_Store
*.pyc
29 changes: 21 additions & 8 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
FROM dependabot/dependabot-core

# We pre-install these versions of python as they're known to be used in the
# test suite. These used to be installed in-line, and pre-installing them helps
# with the performance of the python test suite.
RUN pyenv install -s 3.6.13 \
&& pyenv install -s 3.7.1 \
&& pyenv install -s 3.7.10 \
&& git config --global user.name dependabot-ci \
RUN git config --global user.name dependabot-ci \
&& git config --global user.email no-reply@github.com

ARG CODE_DIR=/home/dependabot/dependabot-core
WORKDIR ${CODE_DIR}
COPY --chown=dependabot:dependabot . ${CODE_DIR}

COPY --chown=dependabot:dependabot .rubocop.yml ${CODE_DIR}/.rubocop.yml
COPY --chown=dependabot:dependabot omnibus ${CODE_DIR}/omnibus
COPY --chown=dependabot:dependabot dep ${CODE_DIR}/dep
COPY --chown=dependabot:dependabot git_submodules ${CODE_DIR}/git_submodules
COPY --chown=dependabot:dependabot terraform ${CODE_DIR}/terraform
COPY --chown=dependabot:dependabot github_actions ${CODE_DIR}/github_actions
COPY --chown=dependabot:dependabot hex ${CODE_DIR}/hex
COPY --chown=dependabot:dependabot elm ${CODE_DIR}/elm
COPY --chown=dependabot:dependabot docker ${CODE_DIR}/docker
COPY --chown=dependabot:dependabot nuget ${CODE_DIR}/nuget
COPY --chown=dependabot:dependabot maven ${CODE_DIR}/maven
COPY --chown=dependabot:dependabot gradle ${CODE_DIR}/gradle
COPY --chown=dependabot:dependabot cargo ${CODE_DIR}/cargo
COPY --chown=dependabot:dependabot composer ${CODE_DIR}/composer
COPY --chown=dependabot:dependabot go_modules ${CODE_DIR}/go_modules
COPY --chown=dependabot:dependabot python ${CODE_DIR}/python
COPY --chown=dependabot:dependabot npm_and_yarn ${CODE_DIR}/npm_and_yarn
COPY --chown=dependabot:dependabot bundler ${CODE_DIR}/bundler
COPY --chown=dependabot:dependabot common ${CODE_DIR}/common

0 comments on commit f480838

Please sign in to comment.