FROM mcr.microsoft.com/oryx/node:6.2-20190518.2
LABEL maintainer="Azure App Services Container Images "

RUN echo "pass"

RUN echo "ipv6" >> /etc/modules

RUN npm install -g pm2 \
     && mkdir -p /home/LogFiles /opt/startup \
     && echo "root:Docker!" | chpasswd \
     && echo "cd /home" >> /etc/bash.bashrc \
     && apt-get update \  
     && apt-get install --yes --no-install-recommends openssh-server vim curl wget tcptraceroute openrc

# setup default site
RUN rm -f /etc/ssh/sshd_config
COPY startup /opt/startup
COPY hostingstart.html /opt/startup

# configure startup
RUN mkdir -p /tmp
COPY sshd_config /etc/ssh/

COPY ssh_setup.sh /tmp
RUN chmod -R +x /opt/startup \
   && chmod -R +x /tmp/ssh_setup.sh \
   && (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
   && rm -rf /tmp/* \
   && cd /opt/startup \
   && npm install 

ENV PORT 8080
ENV SSH_PORT 2222
EXPOSE 2222 8080

ENV PM2HOME /pm2home

ENV WEBSITE_ROLE_INSTANCE_ID localRoleInstance
ENV WEBSITE_INSTANCE_ID localInstance
ENV PATH ${PATH}:/home/site/wwwroot

WORKDIR /home/site/wwwroot

ENTRYPOINT ["/opt/startup/init_container.sh"]
ARG GO_VERSION=1.12.4

FROM golang:${GO_VERSION}-alpine

ARG GOOS
ARG GOARCH

COPY . /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm

RUN set -ex \
	&& apk add --no-cache --virtual .build-deps \
	git \
	&& GOARCH=$GOARCH GOOS=$GOOS CGO_ENABLED=0 go install -v -a -tags netgo -installsuffix netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT=$(git rev-parse --short HEAD) -X github.com/docker/swarm/version.BUILDTIME=$(date -u +%FT%T%z)"  \
	&& apk del .build-deps

ENV SWARM_HOST :2375
EXPOSE 2375

VOLUME $HOME/.swarm

ENTRYPOINT ["swarm"]
CMD ["--help"]
ARG GO_VERSION=1.12.4

# Dockerfile for swarm integration test environment.
# Use with run_in_docker.sh

FROM dockerswarm/dind:17.06.0-ce

# Install dependencies.
RUN apt-get update && apt-get install -y --no-install-recommends git file parallel netcat \
    && apt-get clean && rm -rf /var/lib/apt/lists/*

# Install golang
ENV GO_VERSION=${GO_VERSION}
RUN curl -sSL https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz | tar -v -C /usr/local -xz
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go

# install bats
RUN cd /usr/local/src/ \
    && git clone https://github.com/sstephenson/bats.git \
    && cd bats \
    && ./install.sh /usr/local

RUN mkdir -p /go/src/github.com/docker/swarm
WORKDIR /go/src/github.com/docker/swarm/test/integration

ENTRYPOINT ["/dind"]
FROM scratch
ENV test integration
FROM busybox:latest
ARG greeting=hello
ENV GREETING=$greeting
CMD ["/bin/sh", "-c", "echo -n \"$GREETING\""]
FROM    scratch
LABEL   com.docker.swarm.test.integration.images=labeltest
FROM harbor.top.mw/library/openresty:1.13.6.2-centos
MAINTAINER gaowei 
ADD ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
ADD ./dist /usr/local/openresty/nginx/html

#FROM node:lts-alpine as build-stage
#WORKDIR /app
#COPY package*.json ./
#RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
#RUN cnpm install
#COPY . .
#RUN cnpm run build
#
## production stage
#FROM harbor.top.mw/library/openresty:1.13.6.2-centos
#ADD ./nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
#COPY --from=build-stage /app/dist /usr/local/openrdocesty/nginx/html
bitnami/bitnami-docker-elasticsearch-exporter - 1/debian-9/Dockerfile

Bitnami Docker Image for Elasticsearch-exporter

FROM bitnami/minideb:stretch
LABEL maintainer "Bitnami "

# Install required system packages and dependencies
RUN install_packages ca-certificates wget
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/elasticsearch-exporter-1.0.2-20-linux-amd64-debian-9.tar.gz && \
    echo "f2dd0fa14264719606de2ae032b410167b0f1a916c2897f24ac69fbef636fb6d  /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-20-linux-amd64-debian-9.tar.gz" | sha256sum -c - && \
    tar -zxf /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-20-linux-amd64-debian-9.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
    rm -rf /tmp/bitnami/pkg/cache/elasticsearch-exporter-1.0.2-20-linux-amd64-debian-9.tar.gz

ENV BITNAMI_APP_NAME="elasticsearch-exporter" \
    BITNAMI_IMAGE_VERSION="1.0.2-debian-9-r308" \
    PATH="/opt/bitnami/elasticsearch-exporter/bin:$PATH"

EXPOSE 9108

WORKDIR /opt/bitnami/elasticsearch-exporter
USER 1001
ENTRYPOINT [ "/opt/bitnami/elasticsearch-exporter/bin/elasticsearch_exporter" ]
FROM mcr.microsoft.com/windows/servercore:1809

LABEL description="This file generates a docker image containing everything needed to build and run ACRM-Client application"

ENV chocolateyUseWindowsCompression false

SHELL ["powershell", "-Command"]

RUN Set-ExecutionPolicy Bypass -Scope Process -Force ; \
    iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1')) ; \
    refreshenv

ADD artifacts/*.ps1 c:/

RUN powershell -File \
    base_software.ps1 \
    choco feature disable --name showDownloadProgress \
    refreshenv

CMD [ "ping localhost -t" ]

ADD artifacts/nuget.exe C:\\Nuget\\nuget.exe
ADD artifacts/vs_community.exe C:\\temp\\vs_community.exe


RUN & "C:\\TEMP\\vs_community.exe" --installPath C:\BuildTools \
	--add Microsoft.VisualStudio.Component.Roslyn.Compiler \
	--add Microsoft.VisualStudio.Component.CoreBuildTools \
	--add Microsoft.Component.MSBuild \
	--add Microsoft.VisualStudio.Component.NuGet.BuildTools \
	--add Microsoft.VisualStudio.Workload.NetWeb \
	--add Microsoft.Component.VC.Runtime.UCRTSDK \
	--add Microsoft.VisualStudio.Component.Windows10SDK \
	--quiet --wait --norestart --noUpdateInstaller | Out-Default
	
RUN setx /M PATH $($Env:PATH + ';' + 'C:/nuget');
RUN setx /M PATH $($Env:PATH + ';' + 'C:/BuildTools/Common7/IDE');


VOLUME C:/data
RUN Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Session Manager\DOS Devices' -Name 'G:' -Value "\??\C:\data" -Type String;
WORKDIR c:/data
ARG REPO=forgerock-docker-public.bintray.io/forgerock/openig
#ARG TAG=6.5.0-RC2
ARG TAG=6.5.0
FROM $REPO:$TAG
#FROM forgerock-docker-public.bintray.io/forgerock/openig:6.5.0-RC2

COPY --chown=forgerock ./ /git/


# IG wants to create files under /git/{logs,scripts}
USER root
RUN chown -R forgerock:forgerock /git 
USER forgerock