我用这个const cssnano = require('cssnano')
const autoprefixer = require('autoprefixer')
const postcssUrl = require('postcss-url')
module.exports = {
plugins: [
postcssUrl({
url: 'inline',
maxSize: 50,
}),
cssnano({
safe: true,
}),
autoprefixer({
grid: "autoplace"
}),
],
};
创建了一个詹金斯人:
docker-compose.yml
.docker / Dokerfile:
version: '3'
services:
dind:
image: docker:dind
privileged: true
expose:
- 2375
- 2376
volumes:
- .docker/jenkins_data:/var/jenkins_home
environment:
DOCKER_TLS_CERTDIR: ""
jenkins:
build: .docker
environment:
DOCKER_HOST: tcp://dind:2375
ports:
- 8081:8080
- 50000:50000
links:
- dind
volumes:
- .docker/jenkins_data:/var/jenkins_home
- .myProject:/home/project
我的错误是:
FROM jenkins/jenkins:lts
LABEL maintainer="Antoine Descamps <antoine.descamps@ineat-conseil.fr>"
USER root
RUN echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list
RUN apt-key adv --keyserver https://keyserver.ubuntu.com:443 --recv-keys 93C4A3FD7BB9C367
RUN apt-get update
RUN curl -fsSL https://get.docker.com | bash -
RUN curl -L "https://github.com/docker/compose/releases/download/1.22.0/docker-compose-Linux-x86_64" -o /usr/local/bin/docker-compose
RUN chmod +x /usr/local/bin/docker-compose
RUN usermod -aG docker jenkins
USER jenkins
答案 0 :(得分:1)
运行docker-compose时,在日志中显示DinD正在监听端口// assuming there is already H.Map (map) & H.service.Platform (platform) instance
const layerId = 'MY_LAYER';
const cleService = platform.getCustomLocationService();
// Create a tile layer:
cleLayer = cleService.createTileLayer({layerId}, {
resultType: H.service.extension.TileProvider.ResultType.MARKER
});
// Add the tile layer to the map
map.addLayer(cleLayer); // uploaded geometries start to show from zoom 12
。
2376
第一种方式:
在索引中使用dind_1 | time="2020-05-28T15:41:13.544954400Z" level=info msg="API listen on [::]:2376"
因此,您使用environment: DOCKER_TLS_CERTDIR: ""
第二种方式:
删除DOCKER_HOST: tcp://dind:2375
因此,您使用environment: DOCKER_TLS_CERTDIR: ""