forked from RedHatInsights/host-metering
-
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.
chore: use podman-compose for dev environment
- Loading branch information
1 parent
136e9c8
commit b50fe0e
Showing
16 changed files
with
345 additions
and
279 deletions.
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,11 +1,3 @@ | ||
FROM registry.access.redhat.com/ubi7 | ||
FROM registry.access.redhat.com/ubi7/go-toolset:1.19 | ||
|
||
RUN yum install go-toolset-1.19 git make curl gzip tar --enablerepo=rhel-7-server-devtools-rpms -y | ||
|
||
COPY ./entrypoint.sh /usr/bin/ | ||
RUN chmod +x /usr/bin/entrypoint.sh | ||
|
||
COPY ./enable_go_scl.sh /etc/profile.d/ | ||
RUN chmod +x /etc/profile.d/enable_go_scl.sh | ||
|
||
ENTRYPOINT ["entrypoint.sh"] | ||
ENV IS_IN_CONTAINER=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,19 @@ | ||
#!/bin/bash | ||
|
||
pushd $(dirname "$0")/.. | ||
DEVCONTAINER_PATH=$(pwd) | ||
popd | ||
|
||
LOCAL_COMPOSE_FILE=$DEVCONTAINER_PATH/docker-compose.local.yml | ||
|
||
if [ ! -f "$LOCAL_COMPOSE_FILE" ]; then | ||
cat >"$LOCAL_COMPOSE_FILE" <<EOF | ||
version: '3' | ||
services: | ||
host-metering: | ||
build: | ||
context: ${DEVCONTAINER_PATH} | ||
command: /bin/sh -c "while sleep 1000; do :; done" | ||
EOF | ||
fi |
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 @@ | ||
version: '3' | ||
|
||
services: | ||
host-metering: | ||
build: | ||
context: ./ | ||
dockerfile: ./Dockerfile | ||
volumes: | ||
- ../:/workspace/host-metering:Z | ||
|
||
prometheus: | ||
image: prometheus/prometheus | ||
ports: | ||
- 9090:9090 | ||
volumes: | ||
- ./local_prometheus/prometheus.yml:/etc/prometheus/prometheus.yml:Z | ||
command: | ||
- '--config.file=/etc/prometheus/prometheus.yml' | ||
- '--storage.tsdb.path=/prometheus' | ||
- '--web.console.libraries=/usr/share/prometheus/console_libraries' | ||
- '--web.console.templates=/usr/share/prometheus/consoles' | ||
- '--web.enable-remote-write-receiver' |
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
File renamed without changes.
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
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 @@ | ||
{ | ||
"go.alternateTools": { | ||
"go": "/opt/rh/go-toolset-1.19/root/usr/bin/go" | ||
} | ||
} |
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
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
File renamed without changes.
File renamed without changes.
Oops, something went wrong.