Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove unnecessary files * Updates config file for latest options * Changes setup to not require the package installed * Updates docker files * Updates docker instructions
- Loading branch information
Showing
8 changed files
with
165 additions
and
46 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 |
---|---|---|
@@ -1,16 +1,28 @@ | ||
FROM python:3.6-buster | ||
FROM python:3.7-buster | ||
|
||
RUN mkdir -p /opencanary | ||
|
||
COPY bin /opencanary/bin | ||
COPY data /opencanary/data | ||
COPY opencanary /opencanary/opencanary | ||
COPY docs /opencanary/docs | ||
COPY LICENSE /opencanary/LICENSE | ||
COPY requirements.txt /opencanary/requirements.txt | ||
COPY setup.py /opencanary/setup.py | ||
# Download cache lists and install minimal versions | ||
RUN apt-get update && apt-get -yq install --no-install-recommends \ | ||
# Required linux dependencies | ||
sudo && \ | ||
# Remove cache lists and clean up anything not needed to minimize image size | ||
apt-get autoremove -yq && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
# Create and set the working directory | ||
WORKDIR /opencanary | ||
|
||
# Copy only the files needed to install dependencies | ||
COPY opencanary/__init__.py ./opencanary/__init__.py | ||
COPY requirements.txt setup.py ./ | ||
COPY bin /opencanary/bin | ||
|
||
# Install the required dependencies | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy in the latest version | ||
COPY opencanary ./opencanary | ||
|
||
# Set the default application we are running | ||
ENTRYPOINT [ "opencanaryd" ] | ||
|
||
# Set the default arguments to be used for the entrypoint | ||
CMD [ "--dev" ] |
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 |
---|---|---|
@@ -1,14 +1,19 @@ | ||
FROM python:3.6-buster | ||
FROM python:3.7-buster | ||
|
||
WORKDIR /root/ | ||
# Download cache lists and install minimal versions | ||
RUN apt-get update && apt-get -yq install --no-install-recommends \ | ||
# Required linux dependencies | ||
sudo vim build-essential libssl-dev libffi-dev python-dev libpcap-dev && \ | ||
# Remove cache lists and clean up anything not needed to minimize image size | ||
apt-get autoremove -yq && apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt update &&\ | ||
apt-get install -y sudo vim build-essential libssl-dev libffi-dev python-dev libpcap-dev | ||
# Install required pip dependencies | ||
RUN pip install rdpy | ||
RUN pip install opencanary | ||
RUN pip install scapy pcapy | ||
COPY run.sh /bin/run | ||
RUN chmod +x /bin/run | ||
RUN pip install scapy pcapy | ||
|
||
CMD /bin/run | ||
# Set the default application we are running | ||
ENTRYPOINT [ "opencanaryd" ] | ||
|
||
# Set the default arguments to be used for the entrypoint | ||
CMD [ "--dev" ] |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,16 +1,56 @@ | ||
version: "3" | ||
version: "3.4" | ||
|
||
x-common: &common | ||
restart: unless-stopped | ||
volumes: | ||
- ./data/.opencanary.conf:/root/.opencanary.conf | ||
image: "opencanary" | ||
ports: | ||
# Comment/un-comment the port lines below to disable/enable the services you are using | ||
# FTP | ||
- "21:21" | ||
# SSH | ||
# - "22:22" | ||
# Telnet | ||
# - "23:23" | ||
# TFTP | ||
# - "69:69" | ||
# HTTP | ||
- "80:80" | ||
# NTP | ||
# - "123:123" | ||
# SNMP | ||
# - "161:161" | ||
# MSSQL | ||
# - "1433:1433" | ||
# MYSQL | ||
# - "3306:3306" | ||
# RDP | ||
# - "3389:3389" | ||
# VNC | ||
# - "5000:5000" | ||
# SIP | ||
# - "5060:5060" | ||
# REDIS | ||
# - "6379:6379" | ||
# TCP Banner | ||
# - "8001:8001" | ||
# HTTP Proxy | ||
# - "8080:8080" | ||
# Git | ||
# - "9418:9418" | ||
|
||
services: | ||
canary: | ||
container_name: opencanary | ||
restart: unless-stopped | ||
volumes: | ||
- ./opencanary/:/etc/opencanaryd/ | ||
- ./data/:/root/ | ||
ports: | ||
- '21:21' | ||
- '888:80' | ||
image: 'opencanary' | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.latest | ||
latest: # docker-compose up --build -d latest | ||
<<: *common | ||
container_name: opencanary_latest | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.latest | ||
|
||
stable: # docker-compose up --build -d stable | ||
<<: *common | ||
container_name: opencanary_stable | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.stable |
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