Skip to content

Commit

Permalink
Merge pull request #1 from massgov/DP-22256_deployment
Browse files Browse the repository at this point in the history
DP-22256 deployment
  • Loading branch information
tom-fleming authored Aug 30, 2021
2 parents 2a0041c + 86032a4 commit 1260f3c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
FROM php:7.4-cli
COPY . /usr/src/myapp
WORKDIR /usr/src/myapp
CMD [ "php", "./index.php", "mass:logstream", "--logtypes=varnish-request" ]
RUN apt-get update && apt-get install -y libzip-dev zip && docker-php-ext-install zip
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN composer install
CMD [ "php", "./index.php", "mass:logstream", "--logtypes=varnish-request" ]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,12 @@ Fetch logs from Acquia Logstream, massage, and POST to New Relic Logs.
- AC_API2_SECRET
- AC_API_ENVIRONMENT_UUID (see Prod entry in self.site.yml)
- NR_LICENSE_KEY

#### Docker image
See [Docker Hub](https://hub.docker.com/repository/docker/massgov/logs-acquia-to-newrelic) for a containerized version of this command.

This Docker image is used in the [Digital Services Elk Stack](https://github.com/massgov/mds-elk) to stream logs to New Relic.

To manually build and push a new version of the container to Docker Hub:
1. From the latest main branch, run `docker build -t massgov/logs-acquia-to-newrelic:latest`.
2. Run `docker push massgov/logs-acquia-to-newrelic:latest`.

0 comments on commit 1260f3c

Please sign in to comment.