-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
agent: Add support of running the binary within Docker
- Loading branch information
Showing
4 changed files
with
50 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM alpine:3.19.1 | ||
|
||
RUN apk --no-cache add tzdata iptables podman | ||
RUN echo "Asia/Seoul" > /etc/timezone | ||
RUN cp -f /usr/share/zoneinfo/Asia/Seoul /etc/localtime | ||
|
||
RUN mkdir /conf | ||
COPY cmd/cm-honeybee-agent/cm-honeybee-agent /cm-honeybee-agent | ||
RUN chmod 755 /cm-honeybee-agent | ||
|
||
USER root | ||
ENTRYPOINT ["./docker-entrypoint.sh"] |
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,18 @@ | ||
services: | ||
cm-honeybee-agent: | ||
container_name: cm-honeybee-agent | ||
restart: always | ||
privileged: true | ||
build: | ||
context: ./ | ||
dockerfile: Dockerfile | ||
image: cm-honeybee-agent:${TAG:-latest} | ||
entrypoint: /docker-entrypoint.sh | ||
volumes: | ||
- ./docker-entrypoint.sh:/docker-entrypoint.sh:ro | ||
- ./conf/:/conf/:ro | ||
- /etc/:/etc/:ro | ||
- /usr/lib/os-release:/usr/lib/os-release:ro | ||
- /var/:/var/:rw | ||
- /run/:/run/:rw | ||
network_mode: "host" |
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 @@ | ||
#!/bin/sh | ||
|
||
echo "WARNING: nvidia-smi is not supported in the container" | ||
|
||
/cm-honeybee-agent |