docker工具中的angular色testing运行者不会在浏览器中打开
我可以运行testing,看看cli上的testing报告,但我想看浏览器上的testing报告。 如何在浏览器上查看业务testing报告?
这里是docker文件,从节点:8.2.1
# Install Google Chrome RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' RUN apt-get update && apt-get install -y google-chrome-stable RUN mkdir -p /walaa.co WORKDIR /walaa.co COPY package.json /walaa.co/package.json RUN ["yarn", "install"] COPY . /walaa.co ENV CHROME_BIN /usr/bin/google-chrome EXPOSE 4200/tcp CMD ["yarn", "start", "--", "--host", "0.0.0.0"]
这里是karma.conf.js文件
// Karma configuration file, see link for more information // https://karma-runner.github.io/1.0/config/configuration-file.html module.exports = function (config) { config.set({ basePath: '', frameworks: ['jasmine', '@angular/cli'], plugins: [ require('karma-jasmine'), require('karma-chrome-launcher'), require('karma-jasmine-html-reporter'), require('karma-coverage-istanbul-reporter'), require('@angular/cli/plugins/karma') ], client:{ clearContext: false // leave Jasmine Spec Runner output visible in browser }, coverageIstanbulReporter: { reports: [ 'html', 'lcovonly' ], fixWebpackSourcePaths: true }, angularCli: { environment: 'dev' }, reporters: ['progress', 'kjhtml'], port: 9876, colors: true, logLevel: config.LOG_INFO, autoWatch: true, browsers: ['Chrome_without_sandbox'], customLaunchers: { Chrome_without_sandbox: { base: 'ChromeHeadless', flags: [ '--no-sandbox', '--headless', '--disable-gpu', '--remote-debugging-port=9876' ] } }, singleRun: false }); };
我的docker文件或karma.conf.js有问题吗?
- angular2应用程序在nginx:稳定的高山docker图像尝试获取sockjs的URL,当我绑定主机8080 – >容器80,但不是80-> 80
- 从angular2应用程序中调用docker容器中运行的服务
- 在Docker上运行angular2 springboot应用程序,它显示索引页面,但没有加载angular度
- 我如何使用Docker和Angular做实时更改重装?
- callback(或相当于)容器瓦特/ Rails应用程序完成启动时?
- 在Docker镜像中的构build错误
- Docker – 带有Angular 4模板的ASP.NET Core 2.0
- 无效的容器名称
- XMLHttpRequest无法使用keycloak和docker加载