Questions tagged [entry-point]

For questions concerning the "entry point" of an application or library. The entry point is a special function or location in the code where control is passed from the operating system to the program.

450 questions
12
votes
1 answer

How to run spring-boot as a client application?

I have 2 Main entry points in a single application. The first main starts the server, maps the controllers and starts some worker threads. These workers receive messages from cloud queues. In case of increased load, I want to be able to add…
amitection
  • 2,696
  • 8
  • 25
  • 46
12
votes
1 answer

Setuptools console_script entry point not found with install but it's found with develop

My package has a entry point defined in it's setup.py: # -*- coding: utf-8 -*- from setuptools import setup setup( name='fbuildbot', version='0.1', ... entry_points={ 'console_scripts': [ 'create = create:main', …
tutuca
  • 3,444
  • 6
  • 32
  • 54
11
votes
1 answer

Docker run --entrypoint with multiple parameters

I'm trying to understand a discrepancy between ENTRYPOINT in Dockerfile and docker run --entrypoint. The exec form of ENTRYPOINT allows multiple parameters, # Source: https://docs.docker.com/engine/reference/builder/#entrypoint ENTRYPOINT…
mxxk
  • 9,514
  • 5
  • 38
  • 46
10
votes
3 answers

Can Spring Security support multiple entry points?

I mean need different: Login URL Login out url session time url authentication provider error page css for different entry point. Is this possible?
Xilang
  • 101
  • 1
  • 1
  • 3
10
votes
2 answers

standard_init_linux.go:211: exec user process caused "no such file or directory"?

Dockerfile FROM python:3.7.4-alpine ENV PYTHONUNBUFFERED 1 ENV PYTHONDONTWRITEBYTECODE 1 ENV LANG C.UTF-8 MAINTAINER "mail@gmail.com" RUN apk update && apk add postgresql-dev gcc musl-dev RUN apk --update add build-base jpeg-dev zlib-dev RUN pip…
10
votes
4 answers

How to deal with state "Exit 0" in Docker

I have build a Docker image and afterwards run a container using Docker Compose. The following command will do the job for me: docker-compose up -d I have restarted the PC and now I want to start the previous container that I've created before. So…
ReynierPM
  • 17,594
  • 53
  • 193
  • 363
10
votes
1 answer

Const-Qualification of Main's Parameters in C++

The C++ standard mandates that all conforming implementations support the following two signatures for main: int main(); int main(int, char*[]); In case of the latter signature, would the addition of (top-level) const-ness break any language…
pt2cv
  • 103
  • 3
10
votes
1 answer

How can I set a custom C entry point with Clang on OS X Mavericks?

I have the following program: #include int bob() { printf("bob\n"); return 0; } int main() { printf("main\n"); return 0; } On Linux, I can enable a custom entry point via: gcc test.c -Wl,-e,bob When I run the resulting…
Matt Fichman
  • 5,458
  • 4
  • 39
  • 59
9
votes
5 answers

Problem with multiple entry Points in the same module

I have multiple entry points in the same module. For example I have an Home entry point for the home page and an Admin entry point for the admin page.
JohnIdol
  • 48,899
  • 61
  • 158
  • 242
9
votes
0 answers

SwiftUI - main(), Scene and WindowGroup are only available in iOS 14 or newer

I started a SwiftUI project with iOS 15 as a deployment target, I was asked to lower the version, so I changed it to iOS 13, after resolving some code compatibility issues I was left with an error at the entry point of the app MyProjectApp.swift…
Thorvald
  • 3,424
  • 6
  • 40
  • 66
9
votes
2 answers

How to source an entry point script with Docker?

I have an Docker image and I can run it: docker run -it --entrypoint="/bin/bash" gcr.io/docker:tag Then I can source a script in the following way: root@86bfac2f6ccc:/# source entrypoint.sh The script looks like that: more…
Dr. Fabien Tarrade
  • 1,556
  • 6
  • 23
  • 49
8
votes
0 answers

How can i require an entry point in Webpack?

Im trying to export these two pieces of code cli.js and program.js, where cli depends on program and program has a bunch of other dependencies... Webpack is doing a great job in bundling all dependencies of program.js (./a,./b,./c...) and correctly…
Rafael Milewski
  • 788
  • 1
  • 8
  • 15
8
votes
2 answers

How to write a Dockerfile which I can start a service and run a shell and also accept arguments for the shell?

In a Dockerfile, the latest instruction is: CMD sudo chown -R user:user /home/user/che && \ sudo service docker start && \ cd /home/user/che/bin/ && ./che.sh run It works but I can't pass more arguments to ./che.sh. The che.sh checks if…
Freewind
  • 193,756
  • 157
  • 432
  • 708
8
votes
1 answer

What are Entry Points in IntelliJ code inspection and do I need to "fix" them?

I am using IntelliJ IDEA. I tried the "inspect code" function that it comes with, and I wanted to fix something called "entry points". That has something to do with my enums and my main method. I would like to know what an entry point is and how to…
shedes
  • 83
  • 1
  • 3
8
votes
3 answers

How do I set WinMain as entry point?

I've deleted the _tmain() method which the IDE generated because I find no sense having two entry points after adding my WinMainentry. And yes, this is my first ever C++ application and I am a newbie, but please be nice. So that's all I got: //…
David von Tamar
  • 797
  • 3
  • 12
  • 29
1 2
3
29 30