Skip to content
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

Makefile build: all Docker builds to be based on newly built hadoop-base image #103

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
DOCKER_NETWORK = docker-hadoop_default
ENV_FILE = hadoop.env
current_branch := $(shell git rev-parse --abbrev-ref HEAD)
base_version := --build-arg HADOOP_BASE_VERSION=$(current_branch)
build:
docker build -t bde2020/hadoop-base:$(current_branch) ./base
docker build -t bde2020/hadoop-namenode:$(current_branch) ./namenode
docker build -t bde2020/hadoop-datanode:$(current_branch) ./datanode
docker build -t bde2020/hadoop-resourcemanager:$(current_branch) ./resourcemanager
docker build -t bde2020/hadoop-nodemanager:$(current_branch) ./nodemanager
docker build -t bde2020/hadoop-historyserver:$(current_branch) ./historyserver
docker build -t bde2020/hadoop-submit:$(current_branch) ./submit
docker build -t bde2020/hadoop-namenode:$(current_branch) $(base_version) ./namenode
docker build -t bde2020/hadoop-datanode:$(current_branch) $(base_version) ./datanode
docker build -t bde2020/hadoop-resourcemanager:$(current_branch) $(base_version) ./resourcemanager
docker build -t bde2020/hadoop-nodemanager:$(current_branch) $(base_version) ./nodemanager
docker build -t bde2020/hadoop-historyserver:$(current_branch) $(base_version) ./historyserver
docker build -t bde2020/hadoop-submit:$(current_branch) $(base_version) ./submit

wordcount:
docker build -t hadoop-wordcount ./submit
Expand Down
3 changes: 2 additions & 1 deletion datanode/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion historyserver/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion namenode/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion nodemanager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion resourcemanager/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down
3 changes: 2 additions & 1 deletion submit/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM bde2020/hadoop-base:2.0.0-hadoop3.2.1-java8
ARG HADOOP_BASE_VERSION=2.0.0-hadoop3.2.1-java8
FROM bde2020/hadoop-base:$HADOOP_BASE_VERSION

MAINTAINER Ivan Ermilov <[email protected]>

Expand Down