Skip to content
This repository has been archived by the owner on May 18, 2024. It is now read-only.

Installer doesn't seem to function? #20

Open
syntaqx opened this issue Jan 15, 2024 · 6 comments
Open

Installer doesn't seem to function? #20

syntaqx opened this issue Jan 15, 2024 · 6 comments

Comments

@syntaqx
Copy link

syntaqx commented Jan 15, 2024

root@9f6c43f5f485:/# /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bytebase/install/HEAD/install.sh)"
OS: linux
ARCH: amd64
Downloading tarball into /tmp/tmp.TVxn89z7Kr

tarball /tmp/tmp.TVxn89z7Kr/bytebase_linux_amd64.tar.gz not found

Seems the installer isn't in a working state?

@john-peterson-g17
Copy link

Having the same issue.

To clarify the issue occurs when attempting to install the bb cli as instructed here: https://www.bytebase.com/docs/cli/overview/

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bytebase/install/HEAD/install.sh)":
0.527 OS: linux
0.530 ARCH: amd64
0.531 Downloading tarball into /tmp/tmp.smVRty5Nf0
0.531
1.000 tarball /tmp/tmp.smVRty5Nf0/bytebase_linux_amd64.tar.gz not found

@d-bytebase
Copy link
Contributor

Would you try again? Might be transient.

@john-peterson-g17
Copy link

@d-bytebase That seemed to work, but I ran into another issue with the installer.

I need to install the bb CLI inside of a docker container and docker containers typically do not have the sudo command which is referenced in the install script. One workaround is to just install the sudo command into the container but I would rather not do that as it goes against convention for docker containers.

 > [field-service-php stage-0 11/17] RUN /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/bytebase/install/HEAD/install.sh)":
0.858 OS: linux
0.861 ARCH: amd64
0.864 Downloading tarball into /tmp/tmp.kVRGrzZsI3
0.864
1.460 Start downloading https://github.com/bytebase/bytebase/releases/download/2.13.1/bytebase_linux_amd64.tar.gz...
1.467   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
1.467                                  Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100  237M  100  237M    0     0  24.0M      0  0:00:09  0:00:09 --:--:-- 27.7M
11.35 Completed downloading https://github.com/bytebase/bytebase/releases/download/2.13.1/bytebase_linux_amd64.tar.gz
11.35 Start extracting tarball into /tmp/tmp.kVRGrzZsI3...
11.35 environment: line 59: sudo: command not found

install.sh

image

Any chance the script can be modified to remove the reference to sudo?

@d-bytebase
Copy link
Contributor

Gotcha, could you install bytebase via Docker in this case? Docker network remains the only thing to figure out then.

https://www.bytebase.com/docs/get-started/self-host/#docker

@john-peterson-g17
Copy link

@d-bytebase I did a bit of research on using the docker image for Bytebase and it does not meet my needs.

To give context, I want my developers to be able to use the bb cli tool for local development. (Migrating current DB schema to a local DB container for local development, thus ensuring that we use the same source of truth for schema as higher tier environments).

The docker image for Bytebase that you recommend does not seem to come with the bb cli tool and making my developers use the UI for migration of schema on local DB containers is cumbersome and too strict of a process for the quick iteration that we need during local development of DB schema.

I was able to get around the issue with sudo in the install.sh script by just coping the script and removing sudo but this is not maintainable as this modified copy of the script will be incorrect if you ever adjust the install.sh script on your end.

Can we reconsider the adjustment I mentioned previously?

#20 (comment)

@d-bytebase
Copy link
Contributor

@john-peterson-g17 thanks for sharing the story, and I'm sorry for the pain. We will be more than happy to help the problem of "quick iteration that we need during local development of DB schema". On it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants