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
2aaf5c60
Commit
2aaf5c60
authored
May 12, 2015
by
Kun Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dockerfile for building protoc on Centos 6.6
parent
cd141089
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
60 additions
and
1 deletion
+60
-1
Dockerfile
protoc-artifacts/Dockerfile
+40
-0
README.md
protoc-artifacts/README.md
+20
-1
No files found.
protoc-artifacts/Dockerfile
0 → 100644
View file @
2aaf5c60
FROM
centos:6.6
RUN
yum
install
-y
git
\
tar
\
wget
\
make
\
autoconf
\
curl-devel
\
unzip
\
automake
\
libtool
\
glibc-static.i686
\
glibc-devel
\
glibc-devel.i686
# Install Java 8
RUN
wget
-q
--no-cookies
--no-check-certificate
\
--header
"Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie"
"http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jdk-8u45-linux-x64.tar.gz"
\
-O
- |
tar
xz
-C
/var/local
ENV
JAVA_HOME /var/local/jdk1.8.0_45
ENV
PATH $JAVA_HOME/bin:$PATH
# Install Maven
RUN
wget
-q
http://apache.cs.utah.edu/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz
-O
- |
\
tar
xz
-C
/var/local
ENV
PATH /var/local/apache-maven-3.3.3/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
yum
install
-y
devtoolset-1.1
\
devtoolset-1.1-libstdc++-devel
\
devtoolset-1.1-libstdc++-devel.i686
RUN
git clone
--depth
1 https://github.com/google/protobuf.git
# Start in devtoolset environment that uses GCC 4.7
CMD
["scl", "enable", "devtoolset-1.1", "bash"]
protoc-artifacts/README.md
View file @
2aaf5c60
...
...
@@ -87,6 +87,23 @@ When you have done deployment for all platforms, go to
https://oss.sonatype.org/#stagingRepositories, verify that the staging
repository has all the binaries, close and release this repository.
### Tips for deploying on Linux
We build on Centos 6.6 to provide a good compatibility for not very new
systems. We have provided a
``Dockerfile``
under this directory to build the
environment. It has been tested with Docker 1.6.1.
To build a image:
```
$ docker build -t protoc-artifacts .
```
To run the image:
```
$ docker run -it --rm=true protoc-artifacts
```
The Protobuf repository has been cloned into
``/protobuf``
.
### Tips for deploying on Windows
Under Windows the following error may occur:
``gpg: cannot open tty `no tty':
No such file or directory``
. This can be fixed by configuring gpg through an
...
...
@@ -118,7 +135,9 @@ stored:
### Tested build environments
We have succesfully built artifacts on the following environments:
-
Linux x86_32 and x86_64: Ubuntu 14.04.2 64-bit
-
Linux x86_32 and x86_64:
-
Centos 6.6 (within Docker 1.6.1)
-
Ubuntu 14.04.2 64-bit
-
Windows x86_32: MSYS with
``mingw32-gcc-g++ 4.8.1-4``
on Windows 7 64-bit
-
Windows x86_64: Cygwin64 with
``mingw64-x86_64-gcc-g++ 4.8.3-1``
on Windows 7 64-bit
-
Mac OS X x86_32 and x86_64: Mac OS X 10.9.5
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