Skip to content

Commit

Permalink
Port 4485 shrink ocean images (#68)
Browse files Browse the repository at this point in the history
shrunk ocean image size
  • Loading branch information
yairsimantov20 authored Aug 11, 2023
1 parent 4dcc391 commit e5e9a89
Show file tree
Hide file tree
Showing 24 changed files with 528 additions and 59 deletions.
1 change: 1 addition & 0 deletions changelog/PORT-4485.improvement.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Optimized dockerfile to produce smaller images
96 changes: 92 additions & 4 deletions integrations/gitlab/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,94 @@
.vscode/
assets/
*.md
# Git
.git
.gitignore
.env
.gitattributes


# CI
.codeclimate.yml
.travis.yml
.taskcluster.yml

# Docker
docker-compose.yml
Dockerfile
.docker
.dockerignore

# Byte-compiled / optimized / DLL files
**/__pycache__/
**/*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Virtual environment
.env
.venv/
venv/

# PyCharm
.idea

# Python mode for VIM
.ropeproject
**/.ropeproject

# Vim swap files
**/*.swp

# VS Code
.vscode/

*.md
**/.ruff_cache
**/cahangelog
**/tests
2 changes: 1 addition & 1 deletion integrations/gitlab/.port/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v0.1.7
version: v0.1.8
type: gitlab
description: Gitlab integration for Port Ocean
icon: GitLab
Expand Down
8 changes: 8 additions & 0 deletions integrations/gitlab/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm

<!-- towncrier release notes start -->

0.1.8 (2023-08-11)
==================

### Improvements

- Optimized dockerfile to produce smaller images (PORT-4485)


0.1.7 (2023-08-11)
==================

Expand Down
11 changes: 5 additions & 6 deletions integrations/gitlab/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ ENV LIBRDKAFKA_VERSION 1.9.2

WORKDIR /app

RUN apt update && apt install -y wget make g++ libssl-dev autoconf automake libtool curl
RUN wget https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz && \
tar xvzf v${LIBRDKAFKA_VERSION}.tar.gz && \
(cd librdkafka-${LIBRDKAFKA_VERSION}/ && ./configure && make && make install && ldconfig)
RUN apt update && \
apt install -y wget make g++ libssl-dev autoconf automake libtool curl librdkafka-dev && \
apt-get clean

COPY . /app

RUN make install
RUN export POETRY_VIRTUALENVS_CREATE=false && make install/prod && pip cache purge

ENTRYPOINT make run
ENTRYPOINT ocean sail
6 changes: 5 additions & 1 deletion integrations/gitlab/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,17 @@ define deactivate_virtualenv
fi
endef

.SILENT: install lint run test clean
.SILENT: install install/prod lint run test clean

install:
$(call deactivate_virtualenv) && \
$(call install_poetry) && \
poetry install --with dev

install/prod:
$(call install_poetry) && \
poetry install --without dev --no-root --no-interaction --no-ansi --no-cache

lint:
$(ACTIVATE) && \
$(call run_checks,.)
Expand Down
2 changes: 1 addition & 1 deletion integrations/gitlab/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "gitlab"
version = "0.1.7"
version = "0.1.8"
description = "Gitlab integration for Port using Port-Ocean Framework"
authors = ["Yair Siman-Tov <yair@getport.io>"]

Expand Down
96 changes: 92 additions & 4 deletions integrations/jira/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,94 @@
.vscode/
assets/
*.md
# Git
.git
.gitignore
.env
.gitattributes


# CI
.codeclimate.yml
.travis.yml
.taskcluster.yml

# Docker
docker-compose.yml
Dockerfile
.docker
.dockerignore

# Byte-compiled / optimized / DLL files
**/__pycache__/
**/*.py[cod]

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
lib/
lib64/
parts/
sdist/
var/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.cache
nosetests.xml
coverage.xml

# Translations
*.mo
*.pot

# Django stuff:
*.log

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Virtual environment
.env
.venv/
venv/

# PyCharm
.idea

# Python mode for VIM
.ropeproject
**/.ropeproject

# Vim swap files
**/*.swp

# VS Code
.vscode/

*.md
**/.ruff_cache
**/cahangelog
**/tests
2 changes: 1 addition & 1 deletion integrations/jira/.port/spec.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: v0.1.1
version: v0.1.2
type: jira
description: Jira integration for Port Ocean
icon: Jira
Expand Down
7 changes: 7 additions & 0 deletions integrations/jira/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

<!-- towncrier release notes start -->

0.1.2 (2023-08-11)

### Improvements

- Optimized dockerfile to produce smaller images (PORT-4485)


0.1.1 (2023-08-11)

### Improvements
Expand Down
11 changes: 5 additions & 6 deletions integrations/jira/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@ ENV LIBRDKAFKA_VERSION 1.9.2

WORKDIR /app

RUN apt update && apt install -y wget make g++ libssl-dev autoconf automake libtool curl
RUN wget https://github.com/edenhill/librdkafka/archive/v${LIBRDKAFKA_VERSION}.tar.gz && \
tar xvzf v${LIBRDKAFKA_VERSION}.tar.gz && \
(cd librdkafka-${LIBRDKAFKA_VERSION}/ && ./configure && make && make install && ldconfig)
RUN apt update && \
apt install -y wget make g++ libssl-dev autoconf automake libtool curl librdkafka-dev && \
apt-get clean

COPY . /app

RUN make install
RUN export POETRY_VIRTUALENVS_CREATE=false && make install/prod && pip cache purge

ENTRYPOINT make run
ENTRYPOINT ocean sail
2 changes: 1 addition & 1 deletion integrations/jira/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Jira"
version = "0.1.1"
version = "0.1.2"
description = "Integration to bring information from Jira into Port"
authors = ["Mor Paz <mor@getport.io>"]

Expand Down
Loading

0 comments on commit e5e9a89

Please sign in to comment.