-
Notifications
You must be signed in to change notification settings - Fork 883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Dockerfile #23
Open
0xc0
wants to merge
9
commits into
rui314:new
Choose a base branch
from
0xc0:new
base: new
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Add Dockerfile #23
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
96a84ee
Add Dockerfile
0xc0 53f3a73
Add git to Dockerfile for test/thirdparty
0xc0 f3cb033
Use https for cpython
0xc0 e865b64
Use https for git
0xc0 51d4dec
Use https for libpng
0xc0 7bad2b4
Use https for sqlite
0xc0 a66b8d5
Use https for tinycc
0xc0 4e833e5
Use --with-se-linux in ./configure for tinycc
0xc0 862f083
Add thirdparty dependencies to Dockerfile
0xc0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
.git/ |
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 ubuntu:20.04 | ||
RUN \ | ||
apt-get update && \ | ||
apt-get upgrade -y && \ | ||
apt-get install -y build-essential file git | ||
# dependencies for thirdparty cpython | ||
RUN \ | ||
sed -i 's/# deb-src http:\/\/archive.ubuntu.com\/ubuntu\/ focal-updates universe/deb-src http:\/\/archive.ubuntu.com\/ubuntu\/ focal-updates universe/' /etc/apt/sources.list && \ | ||
apt-get update && \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get build-dep -y python3.9 | ||
# dependencies for thirdparty git | ||
RUN \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y gettext libcurl4-openssl-dev libexpat-dev libssl-dev tclsh zlib1g-dev | ||
# dependencies for thirdparty libpng | ||
RUN \ | ||
apt-get install -y zlib1g-dev | ||
# dependencies for thirdparty sqlite | ||
RUN \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y tcl-dev tclsh zlib1g-dev | ||
# dependencies for thirdparty tinycc | ||
RUN \ | ||
DEBIAN_FRONTEND="noninteractive" apt-get install -y texinfo | ||
ADD . /opt/chibicc | ||
WORKDIR /opt/chibicc |
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,5 +1,5 @@ | ||
#!/bin/bash | ||
repo='git@github.com:python/cpython.git' | ||
repo='https://github.com/python/cpython.git' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This worth another PR :) |
||
. test/thirdparty/common | ||
git reset --hard c75330605d4795850ec74fdc4d69aa5d92f76c00 | ||
|
||
|
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 |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#!/bin/bash | ||
repo='git@github.com:TinyCC/tinycc.git' | ||
repo='https://github.com/TinyCC/tinycc.git' | ||
. test/thirdparty/common | ||
git reset --hard df67d8617b7d1d03a480a28f9f901848ffbfb7ec | ||
|
||
./configure --cc=$chibicc | ||
./configure --cc=$chibicc --with-selinux | ||
$make clean | ||
$make | ||
$make CC=cc test |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use
ENV DEBIAN_FRONTEND=noninteractive
for simplicity.