Create a Docker container
- Last UpdatedSep 30, 2024
- 1 minute read
To create a Docker container that runs the adapter, follow the instructions below.
-
Create the following Dockerfile in the directory where you want to create and run the container.
Note: Dockerfile is the required name of the file. Use the variation according to your operating system:
ARM32
FROM ubuntu
WORKDIR /
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates libicu70 libssl13 curl
COPY <adapter>dockerstart.sh /
RUN chmod +x /<adapter>dockerstart.sh
ADD ./<adapter>-arm_.tar.gz .
ENTRYPOINT ["/<adapter>dockerstart.sh"]
ARM64
FROM ubuntu
WORKDIR /
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates libicu70 libssl13 curl
COPY <adapter>dockerstart.sh /
RUN chmod +x /<adapter>dockerstart.sh
ADD ./<adapter>-arm64_.tar.gz .
ENTRYPOINT ["/<adapter>dockerstart.sh"]
AMD64 (x64)
FROM ubuntu
WORKDIR /
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y ca-certificates libicu70 libssl13 curl
COPY <adapter>dockerstart.sh /
RUN chmod +x /<adapter>dockerstart.sh
ADD ./<adapter>-x64_.tar.gz .
ENTRYPOINT ["/<adapter>dockerstart.sh"]
-
Copy the <adapter>-platform_.tar.gz file to the same directory as the Dockerfile.
-
Copy the <adapter>dockerstart.sh script to the same directory as the Dockerfile.
-
Run the following command line in the same directory (sudo may be necessary):
docker build -t <adapter>adapter.