-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into remove-dead-code
- Loading branch information
Showing
17 changed files
with
748 additions
and
27 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
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,27 @@ | ||
# Use the docker:dind image as the base image | ||
FROM docker:dind | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install curl and bash | ||
RUN apk update && apk add --no-cache curl bash | ||
|
||
# Install the ca-certificates package | ||
RUN apk add --no-cache ca-certificates | ||
|
||
# Copy a root ca into the image | ||
COPY certificates/generated_assets/bacalhau_test_root_ca.crt /usr/local/share/ca-certificates/bacalhau_test_root_ca.crt | ||
|
||
# Update CA certificates | ||
RUN update-ca-certificates | ||
|
||
# Download and execute the Bash script from the given URL | ||
RUN curl -sSL https://get.bacalhau.org/install.sh | bash | ||
|
||
# Download the binary, make it executable, and move it to /usr/local/bin | ||
RUN curl -o /tmp/mc https://dl.min.io/client/mc/release/linux-amd64/mc \ | ||
&& chmod +x /tmp/mc \ | ||
&& mv /tmp/mc /usr/local/bin/ | ||
|
||
ENTRYPOINT ["dockerd-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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Use the docker:dind image as the base image | ||
FROM docker:dind | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install curl and bash | ||
RUN apk update && apk add --no-cache curl bash | ||
|
||
# Install the ca-certificates package | ||
RUN apk add --no-cache ca-certificates | ||
|
||
# Copy a root ca into the image | ||
COPY certificates/generated_assets/bacalhau_test_root_ca.crt /usr/local/share/ca-certificates/bacalhau_test_root_ca.crt | ||
|
||
# Update CA certificates | ||
RUN update-ca-certificates | ||
|
||
# Download and execute the Bash script from the given URL | ||
RUN curl -sSL https://get.bacalhau.org/install.sh | bash | ||
|
||
COPY compute_node_image_setup.sh compute_node_image_setup.sh | ||
ENTRYPOINT ["/usr/bin/env"] | ||
CMD ./compute_node_image_setup.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM registry:2 | ||
|
||
# Install curl and bash | ||
RUN apk update && apk add --no-cache curl bash | ||
|
||
# Install the ca-certificates package | ||
RUN apk add --no-cache ca-certificates | ||
|
||
# Copy a root ca into the image | ||
COPY certificates/generated_assets/bacalhau_test_root_ca.crt /usr/local/share/ca-certificates/bacalhau_test_root_ca.crt | ||
|
||
# Create a directory to store certificates to be used by the registry | ||
RUN mkdir /certs | ||
|
||
# Copy the certificate and key from the local directory to /certs | ||
COPY certificates/generated_assets/bacalhau-container-img-registry-node.crt /certs/ | ||
COPY certificates/generated_assets/bacalhau-container-img-registry-node.key /certs/ | ||
|
||
# Ensure proper permissions for certs | ||
RUN chmod 600 /certs/bacalhau-container-img-registry-node.key | ||
RUN chmod 644 /certs/bacalhau-container-img-registry-node.crt | ||
|
||
# Expose the registry's default port | ||
EXPOSE 5000 443 |
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 @@ | ||
# Use the docker:dind image as the base image | ||
FROM docker:dind | ||
|
||
# Set the working directory | ||
WORKDIR /app | ||
|
||
# Install curl and bash | ||
RUN apk update && apk add --no-cache curl bash | ||
|
||
# Install the ca-certificates package | ||
RUN apk add --no-cache ca-certificates | ||
|
||
# Copy a root ca into the image | ||
COPY certificates/generated_assets/bacalhau_test_root_ca.crt /usr/local/share/ca-certificates/bacalhau_test_root_ca.crt | ||
|
||
# Update CA certificates | ||
RUN update-ca-certificates | ||
|
||
# Download and execute the Bash script from the given URL | ||
RUN curl -sSL https://get.bacalhau.org/install.sh | bash | ||
|
||
ENTRYPOINT ["dockerd-entrypoint.sh"] |
Oops, something went wrong.