Skip to content

Commit f650867

Browse files
author
jiyungSong
committed
build: update Dockerfile to base image python:3-slim (#17)
1 parent 3c8d634 commit f650867

2 files changed

Lines changed: 22 additions & 6 deletions

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
FROM python:3.8
1+
FROM python:3-slim
22

33
ENV PYTHONUNBUFFERED 1
44
ENV SPACEONE_PORT 50051
55
ENV SERVER_TYPE grpc
66
ENV PKG_DIR /tmp/pkg
77
ENV SRC_DIR /tmp/src
88

9+
RUN apt update && apt upgrade -y
10+
911
COPY pkg/*.txt ${PKG_DIR}/
1012
RUN pip install --upgrade pip && \
1113
pip install --upgrade --use-deprecated=legacy-resolver -r ${PKG_DIR}/pip_requirements.txt && \

test/api/test_log.py

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,30 @@ def test_log_list(self):
4747
'options': {},
4848
'secret_data': secret_data,
4949
'schema': 'aws_access_key',
50-
'keyword': 'Create',
50+
# 'keyword': 'Create',
51+
# 'query': {
52+
# 'region_name': 'us-east-1',
53+
# 'LookupAttributes': [
54+
# {'AttributeKey': 'ResourceName', 'AttributeValue': 'jihyung.song'}
55+
# ],
56+
# 'resource_type': 'AWS::IAM::User'
57+
# },
5158
'query': {
5259
'region_name': 'ap-northeast-2',
5360
'LookupAttributes': [
54-
{'AttributeKey': 'ResourceName', 'AttributeValue': 'test'}
61+
{'AttributeKey': 'ResourceName', 'AttributeValue': 'i-01ee7c46efad30111'}
5562
],
56-
'resource_type': 'AWS::RDS::DBSubnetGroup'
63+
'resource_type': 'AWS::EC2::Instance'
5764
},
58-
'start': '2022-03-20 21:40:43.789618',
59-
'end': '2022-07-02 21:40:21.661581'
65+
# 'query': {
66+
# 'LookupAttributes': [
67+
# {'AttributeKey': 'AccessKeyId', 'AttributeValue': 'AKIATYAD7BLQE4XLKUFT'}
68+
# ],
69+
# 'resource_type': 'AWS::IAM::AccessKey',
70+
# 'region_name': 'us-east-1'
71+
# },
72+
'start': '2022-11-12T11:15:12.717Z',
73+
'end': '2022-11-14T11:15:12.717Z'
6074
}
6175

6276
resource_stream = self.monitoring.Log.list(params)

0 commit comments

Comments
 (0)