Skip to content

Commit

Permalink
feat: create metron images
Browse files Browse the repository at this point in the history
  • Loading branch information
m9rco committed Jun 20, 2019
1 parent 23b2407 commit 7a5f5b1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
20 changes: 11 additions & 9 deletions 0.7.1/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ RUN yum install -y \
RUN yum groupinstall -y "Development tools"

RUN curl -o /root/metron-0.7.1.tgr.gz https://m9rco-bjhb2-storage.oss-cn-beijing.aliyuncs.com/apache-metron_0.7.1-release.tar.gz \
&& tar xvf /root/metron-0.7.1.tgr.gz
&& tar xvf /root/metron-0.7.1.tgr.gz \
&& rm -f /root/metron-0.7.1.tgr.gz \
&& mv /root/metron-apache-metron_0.7.1-release /root/metron

# install python 2.7.11 but do not make it the default \
RUN curl -o /usr/src/Python-2.7.11.tgz https://m9rco-bjhb2-storage.oss-cn-beijing.aliyuncs.com/Python-2.7.11.tgz \
Expand Down Expand Up @@ -113,14 +115,14 @@ RUN cd /usr/src \


# Enable systemd usage
RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
rm -f /lib/systemd/system/multi-user.target.wants/; \
rm -f /etc/systemd/system/.wants/; \
rm -f /lib/systemd/system/local-fs.target.wants/; \
rm -f /lib/systemd/system/sockets.target.wants/udev; \
rm -f /lib/systemd/system/sockets.target.wants/initctl; \
rm -f /lib/systemd/system/basic.target.wants/; \
rm -f /lib/systemd/system/anaconda.target.wants/*;
# RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done); \
# rm -f /lib/systemd/system/multi-user.target.wants/; \
# rm -f /etc/systemd/system/.wants/; \
# rm -f /lib/systemd/system/local-fs.target.wants/; \
# rm -f /lib/systemd/system/sockets.target.wants/udev; \
# rm -f /lib/systemd/system/sockets.target.wants/initctl; \
# rm -f /lib/systemd/system/basic.target.wants/; \
# rm -f /lib/systemd/system/anaconda.target.wants/*;

# VOLUME ["/sys/fs/cgroup"]

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ To use a specific version, you can pull a versioned tag. You can view the [list
## Run the Docker

```
docker run -itd --privileged --name=metron m9rco/metron
docker run -itd --privileged --name=metron m9rco/metron:latest
```

## Go inside the docker
Expand Down

0 comments on commit 7a5f5b1

Please sign in to comment.