...
 
Commits (3)
......@@ -109,6 +109,9 @@ publish:oci-image-layout:
- GO111MODULE=on go get github.com/minio/mc
- $HOME/go/bin/mc config host add beiran https://minio.beiran.io $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
- $HOME/go/bin/mc cp image-layout-${CI_COMMIT_TAG}.tar.gz beiran/releases
artifacts:
paths:
- image-layout-${CI_COMMIT_TAG}.tar.gz
only:
- tags
......@@ -128,6 +131,9 @@ publish:single-binary-musl:
- GO111MODULE=on go get github.com/minio/mc
- $HOME/go/bin/mc config host add beiran https://minio.beiran.io $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
- $HOME/go/bin/mc cp beiran-single-binary-musl-${CI_COMMIT_TAG} beiran/releases
artifacts:
paths:
- beiran-single-binary-musl-${CI_COMMIT_TAG}
only:
- tags
......@@ -147,6 +153,9 @@ publish:single-binary-glibc:
- GO111MODULE=on go get github.com/minio/mc
- $HOME/go/bin/mc config host add beiran https://minio.beiran.io $MINIO_ACCESS_KEY $MINIO_SECRET_KEY
- $HOME/go/bin/mc cp beiran-single-binary-glibc-${CI_COMMIT_TAG} beiran/releases
artifacts:
paths:
- beiran-single-binary-glibc-${CI_COMMIT_TAG}
only:
- tags
......
......@@ -479,8 +479,13 @@ def find_config_file() -> Optional[str]:
raise Exception("Given configuration file path does not exists.")
return config_file_path_str
# If config file is not specified, try to find the default config file.
# The config file is not specified, try to find the default config file.
# Check if the app is running from source or it is a bundled binary.
if getattr(sys, 'frozen', False):
# The app is bundled.
# The _MEIPASS variable gives the absolute path to the temporary folder created by the bootloader,
# where the config file that we initially added to the bundle also exists.
# For more information, see https://pyinstaller.readthedocs.io/en/stable/runtime-information.html.
default_config_file_path_str = "{}/config.toml".format(sys._MEIPASS) # type: ignore # pylint: disable=no-member,protected-access
else:
default_config_file_path_str = "{}/config.toml".format(DEFAULTS.get('CONFIG_DIR'))
......
......@@ -60,9 +60,9 @@ of `beiran node list`::
$ docker build -t {docker_main_repo}:local .
Then you can use Beiran as::
Then you can run the Beiran like follows:::
$ docker run --name beiran {docker_main_repo}:local --version
$ docker run --name beiran {docker_main_repo}:local [COMMAND] [SUB-COMMAND...]
Unless you checkout a tag, the image will be produced from the latest development source
code. If you need latest stable, please checkout to |latest_release_version|
......