-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump senzing-factory/build-resources from 1 to 2 (#23)
* Bump senzing-factory/build-resources from 1 to 2 Bumps [senzing-factory/build-resources](https://github.com/senzing-factory/build-resources) from 1 to 2. - [Release notes](https://github.com/senzing-factory/build-resources/releases) - [Changelog](https://github.com/senzing-factory/build-resources/blob/main/CHANGELOG.md) - [Commits](senzing-factory/build-resources@v1...v2) --- updated-dependencies: - dependency-name: senzing-factory/build-resources dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * add checkov config, healthcheck, and update workflow permissions --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sam <[email protected]>
- Loading branch information
1 parent
7693b28
commit 9b60c70
Showing
9 changed files
with
38 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
quiet: true | ||
skip-check: CKV_DOCKER_7 |
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,3 @@ | ||
{ | ||
"threshold": 32 | ||
} |
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
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
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
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
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
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 |
---|---|---|
|
@@ -2,6 +2,9 @@ name: pylint | |
|
||
on: [push] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pylint: | ||
runs-on: ubuntu-latest | ||
|
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 |
---|---|---|
|
@@ -4,8 +4,8 @@ FROM ${BASE_IMAGE} | |
ENV REFRESHED_AT=2022-12-21 | ||
|
||
LABEL Name="senzing/code-snippets" \ | ||
Maintainer="[email protected]" \ | ||
Version="0.0.1" | ||
Maintainer="[email protected]" \ | ||
Version="0.0.1" | ||
|
||
# Run as "root" for system installation. | ||
|
||
|
@@ -14,24 +14,26 @@ USER root | |
# Install packages via apt. | ||
|
||
RUN apt-get update \ | ||
&& apt-get -y install \ | ||
vim \ | ||
nano \ | ||
curl \ | ||
less \ | ||
python3 \ | ||
ipython3 \ | ||
python3-pip \ | ||
python3-virtualenv \ | ||
python3-venv \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
&& apt-get -y install \ | ||
vim \ | ||
nano \ | ||
curl \ | ||
less \ | ||
python3 \ | ||
ipython3 \ | ||
python3-pip \ | ||
python3-virtualenv \ | ||
python3-venv \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
## Copy files from repository. | ||
|
||
COPY ./Python/ /code-snippets/Python | ||
COPY ./Resources/ /code-snippets/Resources | ||
COPY ./rootfs / | ||
|
||
HEALTHCHECK CMD ["/app/healthcheck.sh"] | ||
|
||
# Make non-root container. | ||
|
||
USER 1001 | ||
|