Skip to content

Commit 1c90b68

Browse files
committed
Create module
1 parent 2bb9d52 commit 1c90b68

File tree

8 files changed

+14
-7
lines changed

8 files changed

+14
-7
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
env
22
*.egg-info
3+
__pycache__/*

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
*.pyc
22
env
33
*.egg-info
4+
__pycache__/*

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ from python:3.6
22

33
WORKDIR /src
44
ADD setup.py .
5+
RUN mkdir jumpcloud_aws/
56
RUN pip install -e . --src /python/libs
67

78
ENTRYPOINT [ "jumpcloud_aws" ]

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@ Referenced from : https://aws.amazon.com/blogs/security/how-to-implement-a-gener
1313
## Install
1414

1515
```bash
16-
pip3 install git+git://github.com/synaptic-cl/[email protected].4#egg=jumpcloud_aws
16+
pip3 install git+git://github.com/synaptic-cl/[email protected].5#egg=jumpcloud_aws
1717
```
1818

1919
## Reinstall
2020
```bash
21-
pip3 install git+git://github.com/synaptic-cl/[email protected].4#egg=jumpcloud_aws --upgrade
21+
pip3 install git+git://github.com/synaptic-cl/[email protected].5#egg=jumpcloud_aws --upgrade
2222
```
2323

2424
### Use Command
@@ -43,7 +43,7 @@ jumpcloud_aws --help
4343
# Build
4444
docker build -t saml .
4545
# Run
46-
docker run --rm -it -v $(pwd)/:/src -v $HOME/.aws/credentials:/root/.aws/credentials saml
46+
docker run --rm -it -v $(pwd)/jumpcloud_aws:/src/jumpcloud_aws -v $HOME/.aws/credentials:/root/.aws/credentials saml
4747
```
4848

4949

@@ -58,7 +58,7 @@ docker run --rm -it -v $(pwd)/:/src -v $HOME/.aws/credentials:/root/.aws/credent
5858
# Build
5959
docker build -t saml .
6060
# Run
61-
docker run --rm -it -v $(pwd)/:/src -v $HOME/.aws/credentials:/root/.aws/credentials saml
61+
docker run --rm -it -v $(pwd)/jumpcloud_aws:/src/jumpcloud_aws -v $HOME/.aws/credentials:/root/.aws/credentials saml
6262
```
6363

6464
## TODO

jumpcloud_aws/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.

setup.py

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
setup(
44
name='jumpcloud_aws',
55
version='0.1',
6-
py_modules=['jumpcloud_aws'],
6+
packages=['jumpcloud_aws'],
7+
package_data={
8+
'jumpcloud_aws': ['config.yml']
9+
},
710
install_requires=[
811
'beautifulsoup4==4.5.3',
912
'boto3==1.7.22',
@@ -15,7 +18,8 @@
1518
],
1619
entry_points='''
1720
[console_scripts]
18-
jumpcloud_aws=jumpcloud_aws:cli
21+
jumpcloud_aws=jumpcloud_aws.app:cli
1922
''',
20-
python_requires=">==3.6"
23+
python_requires=">==3.6",
24+
include_package_data=True
2125
)

0 commit comments

Comments
 (0)