-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #567 from kinode-dao/release-candidate
Release candidate 0.9.5
- Loading branch information
Showing
33 changed files
with
1,545 additions
and
459 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,47 @@ | ||
FROM ubuntu:22.04 | ||
|
||
# Set environment variables to avoid interactive dialog from APT | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
ENV NVM_DIR=/root/.nvm | ||
|
||
# Install all necessary packages in one layer and clean up in the same layer | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
pkg-config \ | ||
ca-certificates \ | ||
libssl-dev \ | ||
cmake \ | ||
llvm-dev \ | ||
libclang-dev \ | ||
clang \ | ||
curl \ | ||
git \ | ||
python3 \ | ||
&& update-ca-certificates \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# Install Rust and wasm tools | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y \ | ||
&& . $HOME/.cargo/env \ | ||
&& rustup install nightly \ | ||
&& rustup target add wasm32-wasi \ | ||
&& rustup target add wasm32-wasi --toolchain nightly \ | ||
&& rustup target add wasm32-wasip1 \ | ||
&& rustup target add wasm32-wasip1 --toolchain nightly \ | ||
&& cargo install wasm-tools \ | ||
&& cargo install cargo-wasi \ | ||
&& rm -rf ~/.cargo/git \ | ||
&& rm -rf ~/.cargo/registry | ||
|
||
# Install NVM, Node.js | ||
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash \ | ||
&& . "$NVM_DIR/nvm.sh" \ | ||
&& nvm install node \ | ||
&& nvm use node | ||
|
||
# Set up environment variables | ||
ENV DEBIAN_FRONTEND=dialog \ | ||
PATH="/root/.nvm/versions/node/$(node -v)/bin:${PATH}" | ||
|
||
# Set the default command to bash | ||
CMD ["bash"] |
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,14 @@ | ||
FROM nick1udwig/buildbase:latest | ||
|
||
ARG DOCKER_BUILD_IMAGE_VERSION=latest | ||
|
||
ENV NVM_DIR=/root/.nvm \ | ||
PATH="/root/.nvm/versions/node/$(node -v)/bin:${PATH}" \ | ||
DOCKER_BUILD_IMAGE_VERSION=$DOCKER_BUILD_IMAGE_VERSION | ||
|
||
# Bind readonly & copy files in to avoid modifying host files | ||
WORKDIR /input | ||
|
||
# Set the default command to run the build script | ||
# TODO: once build is idempotent, remove the `rm -rf` line | ||
CMD ["/bin/bash", "-c", ". ~/.bashrc && . ~/.cargo/env && . $NVM_DIR/nvm.sh && rm -rf target/ kinode/packages/*/pkg/*wasm kinode/packages/*/*/target/ kinode/packages/*/pkg/api.zip kinode/packages/*/*/wit kinode/packages/app_store/pkg/ui kinode/packages/homepage/pkg/ui kinode/src/register-ui/build && ./scripts/build-release.py && cp -r /tmp/kinode-release/* /output && chmod 664 /output/* && rm -rf target/ kinode/packages/*/pkg/*wasm kinode/packages/*/*/target/ kinode/packages/*/pkg/api.zip kinode/packages/*/*/wit kinode/packages/app_store/pkg/ui kinode/packages/homepage/pkg/ui kinode/src/register-ui/build"] |
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
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
Oops, something went wrong.