- https://git-scm.com/
- https://www.docker.com/docker-windows
- https://www.docker.com/docker-mac
- https://code.visualstudio.com/
- https://www.jetbrains.com/rider/
git clone https://github.com/vostok/launchpad.git
vostok create -n Alice
dotnet restore
dotnet run
FROM microsoft/dotnet:2.0-sdk-jessie
WORKDIR /app
COPY . /app
RUN dotnet restore
RUN dotnet publish -c Release -o out
ENTRYPOINT ["dotnet"]
CMD ["Alice/out/Alice.dll"]
docker build .
docker build ./custom/
docker build -t registry.skbkontur.ru/konfur/alice:003 .
docker images
docker run -it --entrypoint=/bin/sh registry.skbkontur.ru/konfur/alice:003
ls -la
docker rmi registry.skbkontur.ru/konfur/alice:003
docker rmi -f `docker images -q`
FROM microsoft/dotnet:2.0-sdk-jessie AS builder
# ...
FROM microsoft/dotnet:2.0-runtime-jessie
WORKDIR /app
COPY --from=builder /app/Alice/out/ ./
EXPOSE 33333
ENTRYPOINT ["./Alice"]
docker run -it registry.skbkontur.ru/konfur/alice:latest
docker run -it --name alice registry.skbkontur.ru/konfur/alice:latest
docker ps
docker ps -a
docker logs alice
docker exec -it alice /bin/bash
docker rm alice
docker rm -fv `docker ps -aq`
alice:
image: registry.skbkontur.ru/konfur/alice:latest
depends_on:
- gate
ports:
- 33333:33333
var url = new Uri("https://ya.ru");
var log = new ConsoleLog();
var cluster = new ClusterClient(
log,
config =>
{
config.ClusterProvider = new FixedClusterProvider(url);
config.Transport = new VostokHttpTransport(log);
});
var result = cluster.Send(Vostok.Clusterclient.Model.Request.Get("/"));
result.Response.EnsureSuccessStatusCode();