Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cs350-container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kenneth Ryan Hancock
cs350-container
Commits
7716b2a6
Unverified
Commit
7716b2a6
authored
2 years ago
by
Ryan Hancock
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://git.uwaterloo.ca/krhancoc/cs350-container
parents
914e228c
d877222c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+0
-6
0 additions, 6 deletions
README.md
os161-container/Dockerfile
+7
-0
7 additions, 0 deletions
os161-container/Dockerfile
with
7 additions
and
6 deletions
README.md
+
0
−
6
View file @
7716b2a6
...
@@ -143,9 +143,3 @@ If the assignments repo has changed, either due to assignments being changed or
...
@@ -143,9 +143,3 @@ If the assignments repo has changed, either due to assignments being changed or
This is due to windows placing return characters in the strings that get
This is due to windows placing return characters in the strings that get
passed to the scripts. Please use git bash or a terminal that does UNIX
passed to the scripts. Please use git bash or a terminal that does UNIX
string passing.
string passing.
**Cannot figure out the host**
This occurs within newer level Macs that use Apple Silicon, docker
currently requires x86 architectures to work, you'll need to use the
student environment.
This diff is collapsed.
Click to expand it.
os161-container/Dockerfile
+
7
−
0
View file @
7716b2a6
...
@@ -10,12 +10,16 @@ RUN mkdir -p /os161/tools/bin; \
...
@@ -10,12 +10,16 @@ RUN mkdir -p /os161/tools/bin; \
mkdir
-p
/os161/tools/share/man/man1
;
\
mkdir
-p
/os161/tools/share/man/man1
;
\
mkdir
-p
/os161/tools/share/mk
;
mkdir
-p
/os161/tools/share/mk
;
# Install a newer version of config.guess with ARM support. Pin it to a specific commit for stability.
ADD
https://git.savannah.gnu.org/cgit/config.git/plain/config.guess?id=20403c5701973a4cbd7e0b4bbeb627fcd424a0f1 /tmp/config.guess
RUN
chmod
+x /tmp/config.guess
COPY
dependencies/os161-binutils.tar.gz /binutils.tar.gz
COPY
dependencies/os161-binutils.tar.gz /binutils.tar.gz
RUN
mkdir
/binutils-src
;
\
RUN
mkdir
/binutils-src
;
\
tar
-xf
/binutils.tar.gz
-C
/binutils-src
--strip-components
1
tar
-xf
/binutils.tar.gz
-C
/binutils-src
--strip-components
1
WORKDIR
/binutils-src
WORKDIR
/binutils-src
RUN
cp
-f
/tmp/config.guess .
RUN
find
.
-name
'*.info'
| xargs
touch
;
\
RUN
find
.
-name
'*.info'
| xargs
touch
;
\
./configure
--nfp
--disable-werror
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
;
\
./configure
--nfp
--disable-werror
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
;
\
make
-j
4
&&
make
install
;
\
make
-j
4
&&
make
install
;
\
...
@@ -30,6 +34,7 @@ RUN mkdir /gcc-src; \
...
@@ -30,6 +34,7 @@ RUN mkdir /gcc-src; \
tar
-xf
/gcc.tar.gz
-C
/gcc-src
--strip-components
1
tar
-xf
/gcc.tar.gz
-C
/gcc-src
--strip-components
1
WORKDIR
/gcc-src
WORKDIR
/gcc-src
RUN
cp
-f
/tmp/config.guess .
RUN
CFLAGS
=
"-std=gnu89"
./configure
-nfp
--disable-shared
--disable-threads
\
RUN
CFLAGS
=
"-std=gnu89"
./configure
-nfp
--disable-shared
--disable-threads
\
--disable-libmudflap
--disable-libssp
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
;
\
--disable-libmudflap
--disable-libssp
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
;
\
make
-j
4
&&
make
install
;
\
make
-j
4
&&
make
install
;
\
...
@@ -65,12 +70,14 @@ COPY dependencies/os161-gdb.tar.gz /os161-gdb.tar.gz
...
@@ -65,12 +70,14 @@ COPY dependencies/os161-gdb.tar.gz /os161-gdb.tar.gz
RUN
mkdir
/os161-gdb/
&&
tar
-xf
/os161-gdb.tar.gz
-C
/os161-gdb
--strip-components
1
RUN
mkdir
/os161-gdb/
&&
tar
-xf
/os161-gdb.tar.gz
-C
/os161-gdb
--strip-components
1
WORKDIR
/os161-gdb
WORKDIR
/os161-gdb
RUN
cp
-f
/tmp/config.guess .
RUN
CFLAGS
=
"-std=gnu89"
./configure
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
--disable-werror
&&
\
RUN
CFLAGS
=
"-std=gnu89"
./configure
--target
=
mips-harvard-os161
--prefix
=
/os161/tools
--disable-werror
&&
\
make
&&
make
install
make
&&
make
install
WORKDIR
/
WORKDIR
/
RUN
rm
-rf
/os161-gdb /os161-gdb.tar.gz
RUN
rm
-rf
/os161-gdb /os161-gdb.tar.gz
RUN
rm
-f
/tmp/config.guess
RUN
cd
/os161/tools/bin
&&
sh
-c
'for i in mips-*; do ln -s /os161/tools/bin/$i /os161/tools/bin/cs350-`echo $i | cut -d- -f4-`; done'
RUN
cd
/os161/tools/bin
&&
sh
-c
'for i in mips-*; do ln -s /os161/tools/bin/$i /os161/tools/bin/cs350-`echo $i | cut -d- -f4-`; done'
RUN
python3
-m
pip
install
-U
prettytable
RUN
python3
-m
pip
install
-U
prettytable
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment