Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified dist/singlestore_pulse-0.3-py3-none-any.whl
Binary file not shown.
Binary file modified dist/singlestore_pulse-0.3.tar.gz
Binary file not shown.
16 changes: 16 additions & 0 deletions examples/otel-collector/Dockerfile.go-webapp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM golang:1.22-alpine

WORKDIR /app

# Copy the entire pulse_go_otel_instrumentor directory to maintain package structure
COPY ./pulse_go_otel_instrumentor/ ./

# Download dependencies
RUN go mod download

# Build the main application from the main subdirectory
RUN go build -o main ./main

EXPOSE 8093

CMD ["./main/main"]
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip3 install git+https://github.com/singlestore-labs/singlestore-pulse.git@master

COPY main.py .
COPY myapp.py .
COPY .env .

EXPOSE 8000

CMD ["python", "main.py"]
CMD ["python", "myapp.py"]
17 changes: 17 additions & 0 deletions examples/otel-collector/Dockerfile.myapp_2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dockerfile
FROM python:3.11

WORKDIR /app

COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY singlestore_pulse-0.3-py3-none-any.whl .
RUN pip install --no-cache-dir singlestore_pulse-0.3-py3-none-any.whl
# RUN pip3 install git+https://github.com/singlestore-labs/singlestore-pulse.git@master

COPY myapp_2.py .
COPY .env .

EXPOSE 8000

CMD ["python", "myapp_2.py"]
21 changes: 20 additions & 1 deletion examples/otel-collector/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,32 @@ services:
myapp:
build:
context: .
dockerfile: Dockerfile
dockerfile: Dockerfile.myapp
ports:
- "8007:8000"
depends_on:
- otel-collector
networks:
- otel-network
myapp_2:
build:
context: .
dockerfile: Dockerfile.myapp_2
ports:
- "8008:8000"
depends_on:
- otel-collector
networks:
- otel-network

go-webapp:
build:
context: .
dockerfile: Dockerfile.go-webapp
ports:
- "8009:8093"
networks:
- otel-network

otel-collector:
image: otel/opentelemetry-collector:latest
Expand Down
Loading