Skip to content

Commit e482026

Browse files
authored
Merge pull request #178 from Pratikrocks/docker
Add docker file
2 parents 86bde34 + 324e67f commit e482026

3 files changed

Lines changed: 141 additions & 0 deletions

File tree

.dockerignore

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
# Python compiled files
2+
*.py[cod]
3+
4+
# virtualenv and other misc bits
5+
*.egg-info
6+
/dist
7+
/build
8+
/bin
9+
/lib
10+
/scripts
11+
/Scripts
12+
/Lib
13+
/pip-selfcheck.json
14+
/tmp
15+
.Python
16+
/include
17+
/Include
18+
/local
19+
*/local/*
20+
/local/
21+
/share/
22+
/tcl/
23+
/.eggs/
24+
25+
# Installer logs
26+
pip-log.txt
27+
28+
# Unit test / coverage reports
29+
.cache
30+
.coverage
31+
.coverage.*
32+
nosetests.xml
33+
htmlcov
34+
35+
# Translations
36+
*.mo
37+
38+
# IDEs
39+
.project
40+
.pydevproject
41+
.idea
42+
org.eclipse.core.resources.prefs
43+
.vscode
44+
.vs
45+
46+
# Sphinx
47+
docs/_build
48+
docs/bin
49+
docs/build
50+
docs/include
51+
docs/Lib
52+
doc/pyvenv.cfg
53+
pyvenv.cfg
54+
55+
# Various junk and temp files
56+
.DS_Store
57+
*~
58+
.*.sw[po]
59+
.build
60+
.ve
61+
*.bak
62+
/.cache/
63+
64+
# pyenv
65+
/.python-version
66+
/man/
67+
/.pytest_cache/
68+
lib64
69+
tcl
70+
71+
# Ignore Jupyter Notebook related temp files
72+
.ipynb_checkpoints/

Dockerfile

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#
2+
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
3+
# http://nexb.com and https://github.com/nexB/deltacode/
4+
# The DeltaCode software is licensed under the Apache License version 2.0.
5+
# Data generated with DeltaCode require an acknowledgment.
6+
# DeltaCode is a trademark of nexB Inc.
7+
#
8+
# You may not use this software except in compliance with the License.
9+
# You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
10+
# Unless required by applicable law or agreed to in writing, software distributed
11+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
# specific language governing permissions and limitations under the License.
14+
#
15+
# When you publish or redistribute any data created with DeltaCode or any DeltaCode
16+
# derivative work, you must accompany this data with the following acknowledgment:
17+
#
18+
# Generated with DeltaCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
19+
# OR CONDITIONS OF ANY KIND, either express or implied. No content created from
20+
# DeltaCode should be considered or used as legal advice. Consult an Attorney
21+
# for any legal advice.
22+
# DeltaCode is a free and open source software analysis tool from nexB Inc. and others.
23+
# Visit https://github.com/nexB/deltacode/ for support and download.
24+
25+
FROM python:3.9
26+
27+
# Force unbuffered stdout and stderr (e.g. they are flushed to terminal immediately)
28+
ENV PYTHONUNBUFFERED 1
29+
30+
# Requirements as per https://scancode-toolkit.readthedocs.io/en/latest/getting-started/install.html
31+
RUN apt-get update \
32+
&& apt-get install -y \
33+
&& apt-get clean \
34+
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
35+
36+
RUN mkdir /opt/deltacode/
37+
COPY . /opt/deltacode/
38+
WORKDIR /opt/deltacode/
39+
RUN ./configure

docker-compose.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# Copyright (c) 2017-2018 nexB Inc. and others. All rights reserved.
3+
# http://nexb.com and https://github.com/nexB/deltacode/
4+
# The DeltaCode software is licensed under the Apache License version 2.0.
5+
# Data generated with DeltaCode require an acknowledgment.
6+
# DeltaCode is a trademark of nexB Inc.
7+
#
8+
# You may not use this software except in compliance with the License.
9+
# You may obtain a copy of the License at: http://apache.org/licenses/LICENSE-2.0
10+
# Unless required by applicable law or agreed to in writing, software distributed
11+
# under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
12+
# CONDITIONS OF ANY KIND, either express or implied. See the License for the
13+
# specific language governing permissions and limitations under the License.
14+
#
15+
# When you publish or redistribute any data created with DeltaCode or any DeltaCode
16+
# derivative work, you must accompany this data with the following acknowledgment:
17+
#
18+
# Generated with DeltaCode and provided on an "AS IS" BASIS, WITHOUT WARRANTIES
19+
# OR CONDITIONS OF ANY KIND, either express or implied. No content created from
20+
# DeltaCode should be considered or used as legal advice. Consult an Attorney
21+
# for any legal advice.
22+
# DeltaCode is a free and open source software analysis tool from nexB Inc. and others.
23+
# Visit https://github.com/nexB/deltacode/ for support and download.
24+
25+
version: "3"
26+
services:
27+
code:
28+
build: .
29+
volumes:
30+
- .:/opt/deltacode/

0 commit comments

Comments
 (0)