forked from emmanuelvisage/docker-mongo-bi-connector
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (22 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Use an ARM-compatible base image
FROM ubuntu:latest
# Set the working directory
WORKDIR /app
# Install necessary dependencies
RUN apt-get update && \
apt-get install -y wget rsyslog && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Download and install MongoBI Connector (Replace the URL with the most up to date version)
RUN wget -O /app/mongodb-bi-linux-arm64-ubuntu2204-v2.14.12.tgz https://info-mongodb-com.s3.amazonaws.com/mongodb-bi/v2/mongodb-bi-linux-arm64-ubuntu2204-v2.14.12.tgz && \
tar -xzf /app/mongodb-bi-linux-arm64-ubuntu2204-v2.14.12.tgz && \
chmod +x /app/mongodb-bi-linux-arm64-ubuntu2204-v2.14.12/bin/* && \
mv /app/mongodb-bi-linux-arm64-ubuntu2204-v2.14.12 /app/mongo-bi-connector
# Expose any ports required by MongoBI Connector
EXPOSE 3307
# Copy the entrypoint script
COPY entrypoint.sh .
# Pass over the config file
COPY config.yml /app/mongo-bi-connector/example-mongosqld-config.yml
# Allow the entrypoint script to be executed
run chmod +x /app/entrypoint.sh