-
Notifications
You must be signed in to change notification settings - Fork 3
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 #4 from Project-Kunta/development
fixed bug with accepted and broadcasted + interim updating of proposal
- Loading branch information
Showing
43 changed files
with
1,569 additions
and
277 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,2 +1,2 @@ | ||
save: | ||
git add * ; git commit -am "checkpoint" -v ; git push origin master -v ; | ||
git add * ; git commit -am "checkpoint from root" ; git push origin master:development -v |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#FROM rust:latest | ||
#FROM rust:1.36.0 AS build | ||
FROM clux/muslrust AS build | ||
|
||
ARG nodeType | ||
|
||
RUN mkdir /environment/ | ||
|
||
COPY . /environment/ | ||
|
||
WORKDIR /environment/ | ||
|
||
RUN rustup target add x86_64-unknown-linux-musl | ||
|
||
RUN cargo build --release | ||
|
||
# Copy the source and build the application. | ||
COPY ./src ./src | ||
|
||
#### | ||
#RUN apt-get install pkg-config libx11-dev libxmu-dev | ||
|
||
RUN cargo install --target x86_64-unknown-linux-musl --path . | ||
|
||
################second stage | ||
FROM scratch | ||
|
||
EXPOSE 8081 | ||
|
||
#test | ||
#COPY --from=build /usr/local/cargo/bin/core . | ||
|
||
#works | ||
###COPY --from=build /environment/target/x86_64-unknown-linux-musl/release/core . | ||
|
||
###COPY --from=build /environment/storage ./storage | ||
|
||
###CMD ["./core node-name=\"alices node\" node-id=1 port=8081 peers=127.0.0.1:8082,127.0.0.1:8083 ip=127.0.0.1:8081"] |
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,21 @@ | ||
FROM aos:latest AS build | ||
|
||
EXPOSE 8081 | ||
|
||
#test | ||
#COPY --from=build /usr/local/cargo/bin/core . | ||
|
||
#works | ||
####COPY --from=build /environment/target/x86_64-unknown-linux-musl/release/core . | ||
|
||
#RUN mkdir ./storage | ||
|
||
####COPY --from=build /environment/storage ./storage | ||
|
||
|
||
#USER 1 | ||
#CMD ["./core node-name='alice node' node-id=1 port=8081 peers=127.0.0.1:8082,127.0.0.1:8083 ip=127.0.0.1:8081"] | ||
####CMD ["./core", "node-name='alice node'", "node-id=1", "port=8081", "peers=127.0.0.1:8082,127.0.0.1:8083", "ip=127.0.0.1:8081"] | ||
#CMD ["./core", "node-name='alice node'", "node-id=1", "port=8081", "peers=localhost:8082,localhost:8083", "ip=localhost:8081"] | ||
|
||
CMD ["make", "alice"] |
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,21 @@ | ||
FROM aos:latest AS build | ||
|
||
EXPOSE 8082 | ||
|
||
#test | ||
#COPY --from=build /usr/local/cargo/bin/core . | ||
|
||
#works | ||
####COPY --from=build /environment/target/x86_64-unknown-linux-musl/release/core . | ||
|
||
#RUN mkdir ./storage | ||
|
||
####COPY --from=build /environment/storage ./storage | ||
|
||
|
||
#USER 1 | ||
#CMD ["./core node-name=\"bob's node\" node-id=2 port=8082 peers=127.0.0.1:8081,127.0.0.1:8083 ip=127.0.0.1:8082"] | ||
####CMD ["./core", "node-name='bobs node'", "node-id=2", "port=8082", "peers=127.0.0.1:8081,127.0.0.1:8083", "ip=127.0.0.1:8082"] | ||
#CMD ["./core", "node-name='bobs node'", "node-id=2", "port=8082", "peers=localhost:8081,localhost:8083", "ip=localhost:8082"] | ||
|
||
CMD ["make", "bob"] |
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 @@ | ||
FROM aos:latest AS build | ||
|
||
EXPOSE 8083 | ||
|
||
|
||
#test | ||
#COPY --from=build /usr/local/cargo/bin/core . | ||
|
||
#works | ||
####COPY --from=build /environment/target/x86_64-unknown-linux-musl/release/core . | ||
|
||
#RUN mkdir ./storage | ||
|
||
####COPY --from=build /environment/storage ./storage | ||
|
||
|
||
#USER 1 | ||
#CMD ["./core node-name=\"cici's node\" node-id=3 port=8083 peers=127.0.0.1:8082,127.0.0.1:8081 ip=127.0.0.1:8083"] | ||
####CMD ["./core", "node-name='cicis node'", "node-id=3", "port=8083", "peers=127.0.0.1:8082,127.0.0.1:8081", "ip=127.0.0.1:8083"] | ||
#CMD ["./core", "node-name='cicis node'", "node-id=3", "port=8083", "peers=localhost:8082,localhost:8081", "ip=localhost:8083"] | ||
|
||
CMD ["make", "cici"] |
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.