How to create install.sh or where to find install.sh?

When I was looking at the leeway.Dockerfile of server component,I saw the code below.

COPY components-server--app /installer/
WORKDIR /app
RUN /installer/install.sh

First, where is the directory of components-server–app? And second, I couldn’t find the install.sh when I searched the whole project, so where is this install.sh or how to create it?

@tedyage gitpod expects you to use leeway as build tool. To build the server component you need to run leeway build components/server:docker.

Hi @aledbf , thank you for replying.
I found it that components-server–app directory was created automatically by leeway build command within the /tmp/build directory. So I ran the command below to build the server app.

export LEEWAY_WORKSPACE_ROOT=$PWD
leeway build components/server:app -v

But it failed with an unexpected error, which is:

[components/server:app] $ npx tsc && ([ -e ee ] && cp ee/src/graphql/*.graphql dist/ee/src/graphql)
[components/server:app] src/workspace/workspace-starter.ts(22,139): error TS2307: Cannot find module '@gitpod/content-service/lib' or its corresponding type declarations.
[components/server:app] error Command failed with exit code 2.
[components/server:app] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[components/server:app] error Command failed with exit code 2.
[components/server:app] info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
[components/server:app] package build failed
[components/server:app] Reason: exit status 2
build failed
Reason: build failed
FATA[0948] build failed     

I have built that lib using the command below and it succeeded.

leeway build components/content-service:lib -v   

So I’ve no idea why it happens. Do you know why?

@csweichel Could you help here with the leeway build? Is it possible to build the images in a workspace?