-
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.
BDW & GUI support inside the docker image.
- Loading branch information
Showing
9 changed files
with
241 additions
and
120 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,3 +1 @@ | ||
bsc | ||
bsc-contrib | ||
doc | ||
scripts/reps |
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 |
---|---|---|
|
@@ -3,14 +3,33 @@ | |
# | ||
# Author(s): Pavel Benacek <[email protected]> | ||
|
||
FROM ubuntu:18.04 | ||
FROM ubuntu:20.04 | ||
|
||
# Defeault argument values | ||
ARG BJOBS=1 | ||
COPY bsc /bluespec/bsc | ||
COPY build-new-package.sh /bluespec | ||
COPY bsc-contrib /bluespec/bsc-contrib | ||
COPY doc /bluespec/doc | ||
ARG USER=user | ||
ARG UID=1000 | ||
ARG GID=1000 | ||
ARG PASS=password | ||
|
||
RUN apt update && apt upgrade -y && DEBIAN_FRONTEND=noninteractive apt install -y tzdata sudo vim software-properties-common | ||
# Copy downloaded repos | ||
COPY scripts/reps/bsc /bluespec/bsc | ||
COPY scripts/reps/bsc-contrib /bluespec/bsc-contrib | ||
COPY scripts/reps/doc /bluespec/doc | ||
COPY scripts/reps/bdw /bluespec/bdw | ||
COPY scripts/build-new-package.sh /bluespec | ||
|
||
# Install tooling a | ||
RUN apt update && apt upgrade -y && \ | ||
DEBIAN_FRONTEND=noninteractive apt install -y tzdata sudo vim software-properties-common \ | ||
sudo xauth vim-gtk graphviz | ||
RUN add-apt-repository universe && apt update && apt upgrade -y | ||
RUN cd /bluespec && bash ./build-new-package.sh 1.0.0 1.0.0 $BJOBS | ||
|
||
# Add user into the system | ||
RUN groupadd --gid $GID $USER && \ | ||
useradd --uid $UID --gid $GID --groups sudo --shell /bin/bash -m $USER && \ | ||
echo "$USER ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/admins && \ | ||
echo "$USER:$PASS" | chpasswd | ||
|
||
# Build Bluespec tools | ||
RUN cd /bluespec && bash ./build-new-package.sh 1.0.0 1.0.0 1.0.0 $BJOBS |
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 was deleted.
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,14 @@ | ||
#!/usr/bin/env bash | ||
# Copyright 2019 by the bsc docker image contributors | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
# | ||
# Author(s): Pavel Benacek <[email protected]> | ||
|
||
# | ||
# This file can be used as the initial template for your own start-up file. | ||
# Fill the mount folder using the: | ||
# --mount=type=bind,source=/home/user/bsc-work,destination=/bsc-work | ||
|
||
docker run --rm -t -i -e DISPLAY \ | ||
-v /tmp/.X11-unix/:/tmp/.X11-unix:ro -v $XAUTHORITY:$XAUTHORITY:ro \ | ||
--user=$USER localhost/bsc-compiler /bin/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 |
---|---|---|
|
@@ -5,11 +5,15 @@ | |
# | ||
# Author(s): Pavel Benacek <[email protected]> | ||
|
||
DOWNLOAD_PATH=`pwd`/reps | ||
|
||
echo "Preparing all directories ..." | ||
|
||
mkdir -p $DOWNLOAD_PATH && cd $DOWNLOAD_PATH | ||
|
||
git clone --recursive https://github.com/B-Lang-org/bsc.git bsc | ||
git clone --recursive https://github.com/B-Lang-org/bsc-contrib bsc-contrib | ||
git clone --recursive https://github.com/BSVLang/Main.git doc | ||
git clone --recursive https://github.com/B-Lang-org/bdw | ||
|
||
echo "Done!" | ||
echo "Reps downloaded" |
Oops, something went wrong.