Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove projeto Umbrella #134

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 9 additions & 10 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ deps:
RUN apt update -y && apt install -y build-essential
WORKDIR /src
COPY mix.exs mix.lock ./
COPY --dir apps . # check .earthlyignore
RUN mix local.rebar --force
RUN mix local.hex --force
RUN mix deps.get
Expand All @@ -34,7 +33,7 @@ unit-test:
COPY mix.exs mix.lock ./
COPY .env-sample ./
COPY --dir config ./
COPY --dir apps ./
COPY --dir lib ./

WITH DOCKER --compose docker-compose.yml
RUN while ! pg_isready --host=localhost --port=5432 --quiet; do sleep 1; done; \
Expand All @@ -49,7 +48,7 @@ integration-test:
COPY mix.exs mix.lock ./
COPY .env-sample ./
COPY --dir config ./
COPY --dir apps ./
COPY --dir lib ./

WITH DOCKER --compose docker-compose.yml
RUN while ! pg_isready --host=localhost --port=5432 --quiet; do sleep 1; done; \
Expand All @@ -60,19 +59,19 @@ frontend-deps:
FROM node:18.3.0-alpine3.14
WORKDIR /frontend
COPY --dir +deps/deps .
COPY apps/plataforma_digital/assets ./apps/plataforma_digital/assets/
RUN npm ci --prefix ./apps/plataforma_digital/assets
SAVE ARTIFACT /frontend/apps/plataforma_digital/assets AS LOCAL assets
COPY /assets ./assets/
RUN npm ci --prefix ./assets
SAVE ARTIFACT /frontend/assets AS LOCAL assets

frontend-build:
FROM +unit-test
COPY --dir +frontend-deps/assets ./apps/plataforma_digital/
COPY --dir +frontend-deps/frontend/assets ./
RUN mix assets.deploy
SAVE ARTIFACT ./apps/plataforma_digital/priv AS LOCAL priv
SAVE ARTIFACT ./priv/static AS LOCAL static

release:
FROM +unit-test
COPY --dir +frontend-build/priv ./apps/plataforma_digital/
COPY --dir +frontend-build/priv/static ./priv/static/
COPY rel rel
RUN MIX_ENV=prod mix do compile, release
SAVE ARTIFACT /src/_build/prod/rel/pescarte /app/_build/prod/rel/pescarte AS LOCAL release
Expand All @@ -84,7 +83,7 @@ docker-prod:
RUN chown nobody /app
USER nobody
COPY +release/app/_build/prod/rel/pescarte .
CMD ["./bin/pescarte", "eval", "Database.Release.migrate", "&&", "exec", "./bin/pescarte", "start"]
CMD ["./bin/pescarte", "eval", "Pescarte.Database.Release.migrate", "&&", "exec", "./bin/pescarte", "start"]
ARG GITHUB_REPO
SAVE IMAGE --push ghcr.io/$GITHUB_REPO:prod

Expand Down
5 changes: 0 additions & 5 deletions apps/catalogo/.formatter.exs

This file was deleted.

26 changes: 0 additions & 26 deletions apps/catalogo/.gitignore

This file was deleted.

44 changes: 0 additions & 44 deletions apps/catalogo/mix.exs

This file was deleted.

1 change: 0 additions & 1 deletion apps/catalogo/test/test_helper.exs

This file was deleted.

5 changes: 0 additions & 5 deletions apps/cotacoes/.formatter.exs

This file was deleted.

26 changes: 0 additions & 26 deletions apps/cotacoes/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions apps/cotacoes/README.md

This file was deleted.

45 changes: 0 additions & 45 deletions apps/cotacoes/mix.exs

This file was deleted.

1 change: 0 additions & 1 deletion apps/cotacoes/test/test_helper.exs

This file was deleted.

4 changes: 0 additions & 4 deletions apps/cotacoes_etl/.formatter.exs

This file was deleted.

26 changes: 0 additions & 26 deletions apps/cotacoes_etl/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions apps/cotacoes_etl/README.md

This file was deleted.

37 changes: 0 additions & 37 deletions apps/cotacoes_etl/lib/cotacoes_etl/application.ex

This file was deleted.

17 changes: 0 additions & 17 deletions apps/cotacoes_etl/lib/cotacoes_etl/handlers.ex

This file was deleted.

7 changes: 0 additions & 7 deletions apps/cotacoes_etl/lib/cotacoes_etl/integrations.ex

This file was deleted.

39 changes: 0 additions & 39 deletions apps/cotacoes_etl/mix.exs

This file was deleted.

17 changes: 0 additions & 17 deletions apps/cotacoes_etl/test/test_helper.exs

This file was deleted.

4 changes: 0 additions & 4 deletions apps/database/.formatter.exs

This file was deleted.

Loading
Loading