小编Hen*_*uri的帖子

Application Insights 在 Web App for Azure Containers 中不起作用

伙计们,你能告诉我如何在 Azure 上的 linux docker 应用程序中启用应用程序洞察吗?我是否需要修改服务计划?

在此处输入图片说明

azure azure-application-insights azure-app-service-plans

7
推荐指数
0
解决办法
2474
查看次数

如何修复编译 dockerfile 时出现“非法选项”错误?

我在dockerfile中有一个应用程序,需要调用.sh文件来下载包,但是调用该文件时总是出错。

我的docker文件是:

FROM alpine:3.12 as builder

ARG VERSION=7.16.0
ARG DISTRO=tomcat
ARG SNAPSHOT=true

ARG JMX_PROMETHEUS_VERSION=0.12.0

RUN apk add --no-cache \
        bash \
        ca-certificates \
        maven \
        tar \
        wget \
        xmlstarlet

COPY settings.xml download.sh camunda-run.sh camunda-tomcat.sh camunda-wildfly.sh  /tmp/

RUN /tmp/download.sh

FROM alpine:3.12

RUN apk add --no-cache \
        bash \
        ca-certificates \
        curl \
        openjdk11-jre-headless \
        tzdata \
        tini \
        xmlstarlet \
    && curl -o /usr/local/bin/wait-for-it.sh \
      "https://raw.githubusercontent.com/vishnubob/wait-for-it/a454892f3c2ebbc22bd15e446415b8fcb7c1cfa4/wait-for-it.sh" \
    && chmod +x /usr/local/bin/wait-for-it.sh

RUN addgroup -g 1000 -S …
Run Code Online (Sandbox Code Playgroud)

docker dockerfile docker-build

4
推荐指数
1
解决办法
8050
查看次数