This repository has been archived by the owner on Oct 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
61 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Pull base image. | ||
FROM golang:1.4.2-wheezy | ||
|
||
# Set the env variables to non-interactive | ||
ENV DEBIAN_FRONTEND noninteractive | ||
ENV DEBIAN_PRIORITY critical | ||
ENV DEBCONF_NOWARNINGS yes | ||
ENV TERM linux | ||
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections | ||
|
||
# Install go | ||
# ADD tendermint user | ||
RUN useradd tendermint | ||
|
||
# Get rid of tendermint user login shell | ||
RUN usermod -s /sbin/nologin tendermint | ||
|
||
ADD . /go/src/github.com/tendermint/tendermint | ||
WORKDIR /go/src/github.com/tendermint/tendermint | ||
RUN make | ||
|
||
# Set environment variables | ||
USER tendermint | ||
ENV USER tendermint | ||
ENV TMROOT /tendermint_root | ||
# docker run -v $(pwd)/tendermint_root:/tendermint_root | ||
CMD [ "./tendermint", "daemon" ] |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | ||
VAGRANTFILE_API_VERSION = "2" | ||
|
||
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | ||
config.vm.box = "phusion-open-ubuntu-14.04-amd64" | ||
config.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vbox.box" | ||
# Or, for Ubuntu 12.04: | ||
|
||
config.vm.provider :vmware_fusion do |f, override| | ||
override.vm.box_url = "https://oss-binaries.phusionpassenger.com/vagrant/boxes/latest/ubuntu-14.04-amd64-vmwarefusion.box" | ||
end | ||
|
||
if Dir.glob("#{File.dirname(__FILE__)}/.vagrant/machines/default/*/id").empty? | ||
# Install Docker | ||
pkg_cmd = "wget -q -O - https://get.docker.io/gpg | apt-key add -;" \ | ||
"echo deb http://get.docker.io/ubuntu docker main > /etc/apt/sources.list.d/docker.list;" \ | ||
"apt-get update -qq; apt-get install -q -y --force-yes lxc-docker; " | ||
# Add vagrant user to the docker group | ||
pkg_cmd << "usermod -a -G docker vagrant; " | ||
config.vm.provision :shell, :inline => pkg_cmd | ||
end | ||
end |
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