Skip to content

Instantly share code, notes, and snippets.

@ebicoglu
Last active April 14, 2021 09:16
Show Gist options
  • Save ebicoglu/f7cd77069fa053cbe9cf9e9ffcc2f2d2 to your computer and use it in GitHub Desktop.
Save ebicoglu/f7cd77069fa053cbe9cf9e9ffcc2f2d2 to your computer and use it in GitHub Desktop.
ABP licensing in a Docker Container

To be able to debug your ABP project in a Docker container, you can rather copy your local access-token.bin to the corresponding directory in the Docker container:

  • Linux => ./root/.abp./cli/
  • MAC => ~/.abp/cli/ or /users/**your-username**/.abp/cli/
  • Windows => %UserProfile%\.abp\cli\

or login via ABP CLI tool as seen in the abp-docker.yaml file

#FROM mcr.microsoft.com/dotnet/sdk:5.0-focal
#ENV DOTNET_USE_POLLING_FILE_WATCHER 1
#WORKDIR /app/src/product-service/Volosoft.MyMicroserviceSystem.ProductService.HttpApi.Host
#RUN dotnet tool install -g dotnet-serve
#ENV PATH="${PATH}:/root/.dotnet/tools"
#RUN dotnet tool install --global Volo.Abp.Cli
#RUN abp login "[email protected]" -p "12345"
#ENTRYPOINT [ "dotnet", "watch", "run", "--urls", "https://0.0.0.0:6001/" ]
@ebicoglu
Copy link
Author

Alpine Linux distro doesn't have bash. so better use mcr.microsoft.com/dotnet/sdk:5.0-focal

@Domitnator
Copy link

Domitnator commented Apr 12, 2021

@ebicoglu : I believe there is an error in this gist.

./root/.abp./cli/

should be

./root/.abp/cli/

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment