Skip to content

Commit

Permalink
Merge pull request #16 from Senzing/issue-15.dockter.1
Browse files Browse the repository at this point in the history
issue-15 Make non-root container
  • Loading branch information
docktermj authored Jul 25, 2019
2 parents 0a77cc3 + 17c6bd6 commit 40d49bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,29 @@
ARG BASE_IMAGE=senzing/senzing-base:1.0.3
ARG BASE_IMAGE=senzing/senzing-base:1.1.0
FROM ${BASE_IMAGE}

ENV REFRESHED_AT=2019-05-01
ENV REFRESHED_AT=2019-07-23

LABEL Name="senzing/template" \
Maintainer="[email protected]" \
Version="1.0.0"
Version="1.1.0"

HEALTHCHECK CMD ["/app/healthcheck.sh"]

# Run as "root" for system installation.

USER root

# Install packages via apt.

# Copy files from repository.

COPY ./rootfs /

# Make non-root container.

USER 1001

# Runtime execution.

WORKDIR /app
ENTRYPOINT ["/app/docker-entrypoint.sh"]
CMD ["/app/sleep-infinity.sh"]
9 changes: 4 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ This repository assumes a working knowledge of:

### Run docker container

1. **Important:**
Before running `senzing/g2command`,
run [senzing/init-container](https://github.com/Senzing/docker-init-container) to initialize the database.

1. :pencil2: Determine docker network. Example:

```console
Expand Down Expand Up @@ -160,11 +164,6 @@ The following software programs need to be installed:

## Examples

1. Examples of use:
1. [docker-compose-stream-loader-kafka-demo](https://github.com/Senzing/docker-compose-stream-loader-kafka-demo)
1. [kubernetes-demo](https://github.com/Senzing/kubernetes-demo)
1. [rancher-demo](https://github.com/Senzing/rancher-demo/tree/master/docs/db2-cluster-demo.md)

## Errors

1. See [docs/errors.md](docs/errors.md).
Expand Down

0 comments on commit 40d49bd

Please sign in to comment.