mirror of
https://github.com/alexgo-io/stacks-puppet-node.git
synced 2026-04-24 03:45:38 +08:00
removes old docker files (pre-bitcoin)
This commit is contained in:
@@ -1,35 +0,0 @@
|
||||
############################################################
|
||||
# Dockerfile to build resolver
|
||||
# Based on Ubuntu
|
||||
############################################################
|
||||
|
||||
# Set the base image to Ubuntu
|
||||
FROM ubuntu:14.04
|
||||
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
|
||||
|
||||
# File Author / Maintainer
|
||||
MAINTAINER Muneeb Ali (@muneeb)
|
||||
|
||||
# Update the repository sources list
|
||||
RUN apt-get dist-upgrade
|
||||
|
||||
################## BEGIN INSTALLATION ######################
|
||||
|
||||
# Add the package verification key
|
||||
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
|
||||
|
||||
# For installing older version of libdb
|
||||
RUN echo 'deb http://ftp.us.debian.org/debian/ oldstable main' >> /etc/apt/sources.list
|
||||
|
||||
# Update the repository sources list once more
|
||||
RUN apt-get update
|
||||
RUN apt-get -y upgrade
|
||||
|
||||
# Setup conf
|
||||
ADD namecoin_config.tar.gz /root
|
||||
RUN chmod 700 /root/.namecoin
|
||||
# RUN echo -e "rpcuser=opennamesystem\nrpcpassword=opennamesystem" > /root/.namecoin/namecoin.conf
|
||||
RUN chmod 600 /root/.namecoin/namecoin.conf
|
||||
|
||||
#on ubuntu namecoind writes to / instead of /root, symlink it
|
||||
RUN ln -s /root/.namecoin /.namecoin
|
||||
@@ -1,46 +0,0 @@
|
||||
############################################################
|
||||
# Dockerfile to build namecoind
|
||||
# Based on Ubuntu
|
||||
############################################################
|
||||
|
||||
# Set the base-image
|
||||
# the base-image already has a copy of the blockchain
|
||||
FROM digitalpassport/blockchain
|
||||
|
||||
# File Author / Maintainer
|
||||
MAINTAINER Muneeb Ali (@muneeb)
|
||||
|
||||
################## BEGIN INSTALLATION ######################
|
||||
|
||||
RUN apt-get update
|
||||
|
||||
# Create the default directory
|
||||
RUN mkdir -p /srv
|
||||
|
||||
# Install Namecoind
|
||||
RUN apt-get install -y \
|
||||
build-essential \
|
||||
libssl-dev \
|
||||
libboost-all-dev \
|
||||
libgtk2.0-dev \
|
||||
git
|
||||
|
||||
# Assuming older version of libdb was already setup
|
||||
RUN apt-get install -y --force-yes \
|
||||
libdb4.8-dev \
|
||||
libdb4.8++-dev
|
||||
|
||||
# Create the default service directory
|
||||
RUN git clone https://github.com/namecoin/namecoin.git /srv/namecoin
|
||||
|
||||
# Compile
|
||||
WORKDIR /srv/namecoin/src
|
||||
RUN make namecoind
|
||||
|
||||
##################### INSTALLATION END #####################
|
||||
|
||||
# Expose the default http and https port
|
||||
EXPOSE 8332
|
||||
|
||||
# Set default entry point
|
||||
ENTRYPOINT /srv/namecoin/src/namecoind --daemon
|
||||
@@ -1,36 +0,0 @@
|
||||
Run the namecoind docker as:
|
||||
|
||||
> docker run -p 8332:8332/tcp digitalpassport/namecoind
|
||||
|
||||
The docker has the following settings for namecoind:
|
||||
|
||||
```
|
||||
rpcuser=default
|
||||
rpcpassword=default
|
||||
rpcport=8332
|
||||
rpcallowip=*
|
||||
```
|
||||
|
||||
And doesn't have SSL on. It is meant to be run on a localhost. See
|
||||
|
||||
## Installing Docker on OS X:
|
||||
|
||||
If you want to run this on OS X, you can install docker by:
|
||||
|
||||
```
|
||||
brew install docker
|
||||
brew install boot2docker
|
||||
boot2docker init
|
||||
boot2docker up
|
||||
docker run -d -p 80:80/tcp digitalpassport/resolver
|
||||
```
|
||||
|
||||
Docker on OS X has a time sync issue that affects namecoind. Run:
|
||||
|
||||
> /usr/local/bin/boot2docker ssh sudo ntpclient -s -h pool.ntp.org
|
||||
|
||||
To manually sync the clock before running the docker. Also, on OS X the docker is running inside virtualbox which means you will not be able to talk to the docker on 'localhost'. Instead:
|
||||
|
||||
> boot2docker ip
|
||||
|
||||
Will give you the IP address of the VM e.g., 192.168.59.103 and you can then that as the server address.
|
||||
Reference in New Issue
Block a user