Skip to content

Add python and js docker images building #942#1764

Merged
bissquit merged 54 commits intomainfrom
egor-vasiliev/942-add-images
Mar 2, 2023
Merged

Add python and js docker images building #942#1764
bissquit merged 54 commits intomainfrom
egor-vasiliev/942-add-images

Conversation

@bissquit
Copy link
Copy Markdown
Member

@bissquit bissquit commented Feb 1, 2023

Description

Add docker image publishing for python and js

Fixes #942

How to test

Automated tests

Not applicable

Manual tests

Run image publishing from a branch manually

Self-check list

  • build cli locally for each language*
  • run pipeline from a branch**

* use the following command to repeat building environment at your local PC/laptop

docker run -it --rm --name=build-cli --workdir=/data -v "<path-to-repo>:/data" unittestbot/java-env:java11-zulu-jdk-gradle7.4.2-kotlinc1.7.0 /bin/bash
# the following command you'll run inside container
cd <utbot-cli/utbot-cli-js/utbot-cli-python>
VERSION="$(date +%Y).$(date +%-m)"
gradle build --no-daemon --build-cache --no-parallel -Dorg.gradle.jvmargs=-Xmx2g -Dkotlin.daemon.jvm.options=-Xmx4g -x test -PsemVer=${VERSION}
# wait for BUILD SUCCESSFUL or fix issues

** change conditions in a pipeline to publish images

@bissquit bissquit added ctg-enhancement New feature, improvement or change request comp-cli Issue related to CLI comp-github-action GitHub action, gradle plugin or maven plugin labels Feb 1, 2023
@bissquit bissquit self-assigned this Feb 1, 2023
Comment on lines +36 to +40
dockerfile_path: docker/Dockerfile_javascript
extra_options: "-PbuildType=ALL"
- image_name: utbot_python_cli
directory: utbot-cli-python
dockerfile_path: docker/Dockerfile_Python
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dockerfile_java_cli, Dockerfile_javascript and Dockerfile_Python: different naming of docker files

Copy link
Copy Markdown
Member

@viktoriia-fomina viktoriia-fomina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bissquit bissquit merged commit 5c9b2d5 into main Mar 2, 2023
@bissquit bissquit deleted the egor-vasiliev/942-add-images branch March 2, 2023 08:50
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp-cli Issue related to CLI comp-github-action GitHub action, gradle plugin or maven plugin ctg-enhancement New feature, improvement or change request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Publish images of Python, JS and Go CLI

5 participants