-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from newrelic/feat/publish-docker-image
feat: changes to Dockerfile to publish to Dockerhub and associated RE…
- Loading branch information
Showing
7 changed files
with
246 additions
and
66 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,14 +1,11 @@ | ||
# Git stuff | ||
.git | ||
.github | ||
.gitignore | ||
|
||
# NR One Dashbords | ||
dashboards | ||
|
||
# Docs and samples | ||
*.md | ||
config.yml.sample | ||
# Tests | ||
src/tests | ||
|
||
# Python cache | ||
src/newrelic_logging/__pycache__ | ||
|
||
# Coverage reports | ||
**/.coverage | ||
|
||
# Any local files | ||
**/*.local.* |
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 |
---|---|---|
|
@@ -105,7 +105,7 @@ celerybeat.pid | |
*.sage.py | ||
|
||
# Environments | ||
.env | ||
.env* | ||
.venv | ||
env/ | ||
venv/ | ||
|
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,11 +1,11 @@ | ||
# NOTE: remove the "-slim" if you need a full featured base image. | ||
FROM python:3.11-slim | ||
FROM python:3.9 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
COPY requirements.txt ./ | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
|
||
COPY . . | ||
COPY ./src ./src | ||
COPY ./newrelic.ini . | ||
|
||
CMD [ "python", "./src/__main__.py" ] | ||
ENTRYPOINT [ "python3", "./src/__main__.py" ] |
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,19 @@ | ||
FROM newrelic/newrelic-salesforce-exporter | ||
|
||
# | ||
# Copy your config file into the base directory. | ||
# Adjust the local path as necessary. | ||
# | ||
COPY ./config.yml . | ||
|
||
# | ||
# If needed, copy your event type fields mapping file into the base directory. | ||
# Adjust the local path as necessary. | ||
# | ||
#COPY ./event_type_fields.yml . | ||
|
||
# | ||
# If needed, copy your numeric fields mapping file into the base directory. | ||
# Adjust the local path as necessary. | ||
# | ||
#COPY ./numeric_fields.yml . |
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
File renamed without changes.