Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
4274e6af
Unverified
Commit
4274e6af
authored
Apr 02, 2018
by
Feng Xiao
Committed by
GitHub
Apr 02, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4447 from ejona86/cleaner-protoc-artifacts
Cleaner protoc artifacts
parents
c934d1d1
cdbfdd8d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
11 deletions
+32
-11
Dockerfile
protoc-artifacts/Dockerfile
+13
-9
README.md
protoc-artifacts/README.md
+6
-2
scl-enable-devtoolset.sh
protoc-artifacts/scl-enable-devtoolset.sh
+13
-0
No files found.
protoc-artifacts/Dockerfile
View file @
4274e6af
...
...
@@ -11,7 +11,9 @@ RUN yum install -y git \
libtool
\
glibc-static.i686
\
glibc-devel
\
glibc-devel.i686
glibc-devel.i686
\
&&
\
yum clean all
# Install Java 8
RUN
wget
-q
--no-cookies
--no-check-certificate
\
...
...
@@ -27,15 +29,17 @@ RUN wget -q http://apache.cs.utah.edu/maven/maven-3/3.3.9/binaries/apache-maven-
ENV
PATH /var/local/apache-maven-3.3.9/bin:$PATH
# Install GCC 4.7 to support -static-libstdc++
RUN
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
-P
/etc/yum.repos.d
RUN
bash
-c
'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
RUN
bash
-c
"sed -e 's/
\$
basearch/i386/g' /etc/yum.repos.d/devtools-1.1.repo > /etc/yum.repos.d/devtools-i386-1.1.repo"
RUN
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-1.1.repo
RUN
rpm
--rebuilddb
&&
yum
install
-y
devtoolset-1.1
\
RUN
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo
-P
/etc/yum.repos.d
&&
\
bash
-c
'echo "enabled=1" >> /etc/yum.repos.d/devtools-1.1.repo'
&&
\
bash
-c
"sed -e 's/
\$
basearch/i386/g' /etc/yum.repos.d/devtools-1.1.repo > /etc/yum.repos.d/devtools-i386-1.1.repo"
&&
\
sed
-e
's/testing-/testing-i386-/g'
-i
/etc/yum.repos.d/devtools-i386-1.1.repo
&&
\
rpm
--rebuilddb
&&
\
yum
install
-y
devtoolset-1.1
\
devtoolset-1.1-libstdc++-devel
\
devtoolset-1.1-libstdc++-devel.i686
devtoolset-1.1-libstdc++-devel.i686
&&
\
yum clean all
RUN
git clone
--depth
1 https://github.com/google/protobuf.git
COPY
scl-enable-devtoolset.sh /var/local/
# Start in devtoolset environment that uses GCC 4.7
CMD
["scl", "enable", "devtoolset-1.1", "ba
sh"]
ENTRYPOINT
["/var/local/scl-enable-devtoolset.
sh"]
protoc-artifacts/README.md
View file @
4274e6af
...
...
@@ -140,10 +140,14 @@ $ docker build -t protoc-artifacts .
To run the image:
```
$ docker run -it --rm=true protoc-artifacts
$ docker run -it --rm=true protoc-artifacts
bash
```
The Protobuf repository has been cloned into
``/protobuf``
.
To checkout protobuf (run within the container):
```
$ # Replace v3.5.1 with the version you want
$ wget -O - https://github.com/google/protobuf/archive/v3.5.1.tar.gz | tar xvzp
```
### Tips for deploying on Windows
Under Windows the following error may occur:
``gpg: cannot open tty `no tty':
...
...
protoc-artifacts/scl-enable-devtoolset.sh
0 → 100755
View file @
4274e6af
#!/bin/bash
set
-eu
-o
pipefail
quote
()
{
local
arg
for
arg
in
"
$@
"
;
do
printf
"'"
printf
"%s"
"
$arg
"
|
sed
-e
"s/'/'
\\\\
''/g"
printf
"' "
done
}
exec
scl
enable
devtoolset-1.1
"
$(
quote
"
$@
"
)
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment