热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

cssoverridedoesn'tworkwhenrunninginacontainer

Idontknowifthisshouldevenbehere,butwhenIrungitpitchinsideofacontainer

I don't know if this should even be here, but when I run gitpitch inside of a container I'm unable to use custom css.

The logs in the container say:

Front-End-Pool [debug] c.g.m.SlideshowModel - fetchThemeOverride: customCSS=null

But using the exact same presentation and running on my local machine:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Front-End-Pool [debug] c.g.m.SlideshowModel - fetchThemeOverride: customCSS=.reveal section img {                  

        margin: 0;                                                                                                            

        border: 0;                                                                                                            

        box-shadow: none;                                                                                                    

}                                                                                                                            

.reveal h2 {                                                                                                                  

        text-transform: none;                                                                                                

}                                                                                                                            

.reveal h1 {                                                                                                                  

        text-transform: none;                                                                                                

}                                                                                                                            

#gp-logo img {                                                                                                                

        max-height: none;                                                                                                    

        max-width: 99%;                                                                                                      

        vertical-align: middle;                                                                                              

}

I'm not sure where to even start troubleshooting this. The css override line in PITCHME.yaml is:

theme-override : https://gitlab.company.com/myuser/gitpitch_test/raw/master/assets/css/PITCHME.css

(I've also used the relative path within the repo which also exhibits the same behavior.)

I've used knsit/gitpitch off of dockerhub and I've also built my own with both alpine and centos7 as a base, all the containers act the same way, the custom css doesn't work.

The whole PITCHME.yaml is:

1
2
3
4
5
6
7
---

theme : white

theme-override : https://gitlab.company.com/myuser/gitpitch_test/raw/master/assets/css/PITCHME.css

layout : center-left

logo : assets/images/combined-topbar-logo.png

transition : none

published : true

The actual markdown is a bog-standard hello-world.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
---?image=assets/images/background.png&size=auto 50%&position=bottom

[Introduction]

## Company IT Infrastructure



Domain Roadmap  

$someTechnology Domain goes here






---



[Current State]



## Current State



Describes the current state of the technology domain within Company  

Which technologies exist within the domain today  

How these technologies are used (use cases)  

If multiple technologies are used for the same use case, the relative quantities or percentages

Further notes: we're using an internal gitlab server and we have internally signed ssl certs. We've accounted for the certs in our dockerfile by modifying application.conf to use PEM and copying our root ca certs into the container.

Is it possible for someone else to try to replicate this so we can eliminate a gitpitch bug and keep looking internally?

该提问来源于开源项目:gitpitch/gitpitch

Just checking in, did the fallback config help?


推荐阅读
author-avatar
工商领域LW
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有