File tree Expand file tree Collapse file tree 4 files changed +26
-26
lines changed
queueConsumer/src/actions/services Expand file tree Collapse file tree 4 files changed +26
-26
lines changed Original file line number Diff line number Diff line change @@ -100,11 +100,11 @@ export class ActionService {
100100 data : CreateTemplateDto ,
101101 auth : AuthHeader ,
102102 ) : Promise < ActionTemplateDto > {
103- if ( ! data . dockerImage . startsWith ( 'rslethz/' ) ) {
104- throw new ConflictException (
105- 'Only images from the rslethz namespace are allowed' ,
106- ) ;
107- }
103+ // if (!data.dockerImage.startsWith('rslethz/')) {
104+ // throw new ConflictException(
105+ // 'Only images from the rslethz namespace are allowed',
106+ // );
107+ // }
108108 const exists = await this . actionTemplateRepository . exists ( {
109109 where : {
110110 name : data . name ,
@@ -140,11 +140,11 @@ export class ActionService {
140140 data : UpdateTemplateDto ,
141141 auth : AuthHeader ,
142142 ) : Promise < ActionTemplateDto > {
143- if ( ! data . dockerImage . startsWith ( 'rslethz/' ) ) {
144- throw new ConflictException (
145- 'Only images from the rslethz namespace are allowed' ,
146- ) ;
147- }
143+ // if (!data.dockerImage.startsWith('rslethz/')) {
144+ // throw new ConflictException(
145+ // 'Only images from the rslethz namespace are allowed',
146+ // );
147+ // }
148148 const template = await this . actionTemplateRepository . findOneOrFail ( {
149149 where : { uuid : data . uuid } ,
150150 } ) ;
Original file line number Diff line number Diff line change 11FROM python:latest
22
33# install kleinkram as CLI
4- RUN pip install kleinkram --pre --force-reinstall
4+ RUN pip install kleinkram --pre --force-reinstall && pip install "httpx==0.26.0"
55
66# copy entrypoint and make it executable
77COPY ./entrypoint.sh /entrypoint.sh
Original file line number Diff line number Diff line change @@ -515,16 +515,16 @@ async function submitAnalysis() {
515515 });
516516 return ;
517517 }
518- if (! editingTemplate .value .imageName .startsWith (' rslethz/' )) {
519- Notify .create ({
520- group: false ,
521- message: ' The image name must start with "rslethz/"' ,
522- color: ' negative' ,
523- position: ' bottom' ,
524- timeout: 2000 ,
525- });
526- return ;
527- }
518+ // if (!editingTemplate.value.imageName.startsWith('rslethz/')) {
519+ // Notify.create({
520+ // group: false,
521+ // message: 'The image name must start with "rslethz/"',
522+ // color: 'negative',
523+ // position: 'bottom',
524+ // timeout: 2000,
525+ // });
526+ // return;
527+ // }
528528
529529 // post: the input should be valid now
530530 let template = editingTemplate .value ;
Original file line number Diff line number Diff line change @@ -304,11 +304,11 @@ export class DockerDaemon {
304304 @tracing ( )
305305 private async getImage ( dockerImage : string ) {
306306 // assert that we only run rslethz images
307- if ( ! dockerImage . startsWith ( 'rslethz/' ) ) {
308- throw new Error (
309- 'Only images from the rslethz organization are allowed' ,
310- ) ;
311- }
307+ // if (!dockerImage.startsWith('rslethz/')) {
308+ // throw new Error(
309+ // 'Only images from the rslethz organization are allowed',
310+ // );
311+ // }
312312
313313 // check if docker socket is available
314314 if ( ! this . docker || ! ( await this . docker . ping ( ) ) ) {
You can’t perform that action at this time.
0 commit comments