-
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.
Merge pull request #2 from DataDog/sarahchen6/add-docker-support
Add docker support
- Loading branch information
Showing
5 changed files
with
44 additions
and
1 deletion.
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,3 +1,4 @@ | ||
/.envrc | ||
/vendor | ||
/records | ||
/.env |
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,15 @@ | ||
# Ruby base image | ||
FROM ghcr.io/datadog/images-rb/engines/ruby:3.4 | ||
|
||
# Install dependencies | ||
COPY Gemfile Gemfile.lock catadog.gemspec /app/ | ||
WORKDIR /app | ||
RUN bundle install | ||
|
||
# Add files | ||
COPY /bin/ /app/bin/ | ||
COPY /mocks/ /app/mocks/ | ||
COPY entrypoint.rb / | ||
|
||
# Set entrypoint | ||
ENTRYPOINT ["ruby", "/entrypoint.rb"] |
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
services: | ||
app: | ||
image: catadog | ||
command: --agent-host agent | ||
depends_on: | ||
- agent | ||
ports: | ||
- "8126:8128" | ||
stdin_open: true | ||
tty: true | ||
volumes: | ||
- ./records:/app/records | ||
agent: | ||
image: datadog/agent:7.52.0 | ||
env_file: | ||
- ".env" | ||
environment: | ||
- DD_APM_ENABLED=true | ||
- DD_BIND_HOST=0.0.0.0 | ||
- DD_APM_NON_LOCAL_TRAFFIC=true | ||
- DD_REMOTE_CONFIGURATION_ENABLED=true | ||
|
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,5 @@ | ||
if ARGV.empty? || ARGV == %W[bundle exec catadog] | ||
exec "bundle exec catadog -h 0.0.0.0" | ||
else | ||
exec "bundle exec catadog -h 0.0.0.0 #{ARGV.join(" ")}" | ||
end |