Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make a standalone package for CPAN (App::BookingBot for example) #3

Open
pavelsr opened this issue Nov 20, 2016 · 1 comment
Open
Milestone

Comments

@pavelsr
Copy link
Member

pavelsr commented Nov 20, 2016

And use http://dzil.org/ as building system

@pavelsr pavelsr changed the title Make a standalone package for CPAN Make a standalone package for CPAN (App::BookingBot for example) Nov 20, 2016
@denistex denistex modified the milestone: backlog Nov 20, 2016
@pavelsr
Copy link
Member Author

pavelsr commented Mar 10, 2017

It will also allow to easily manage dependencies without having to fill cpanfile manually (Dist::Zilla will care about it) and avoid using docker at ubuntu servers.

pavel@pavel-Inspiron-3542:/projects/bookingbot$ ./dockerctl.sh run
Sending build context to Docker daemon   107 kB
Step 1 : FROM perl:5.24.0
 ---> 3ca5e62b8dff
Step 2 : MAINTAINER Denis T. <dev@denis-it.com>
 ---> Using cache
 ---> f3634951bc60
Step 3 : WORKDIR /usr/src/bookingbot
 ---> Using cache
 ---> 56a73a9ef5ba
Step 4 : COPY cpanfile ./
 ---> Using cache
 ---> 1401ffc9e130
Step 5 : RUN cpanm --installdeps . 	&& git clone https://bitbucket.org/serikov/serikoff.lib.git
 ---> Running in c1f19467ccf0
--> Working on .
Configuring /usr/src/bookingbot ... OK
==> Found dependencies: DateTime::Span, Mojolicious::Lite, Try::Tiny, WWW::Telegram::BotAPI, List::MoreUtils, DateTime::Format::RFC3339, common::sense, DateTime, Data::Dumper::AutoEncode, Test::MockObject, FSA::Rules, Log::Any::Adapter, Date::Parse, DateTime::SpanSet, Log::Any::For::Std, Log::Any, DateTime::Duration, API::Google
! Finding DateTime::Span on cpanmetadb failed.
! Finding DateTime::Span (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution DateTime::Span
! Finding Mojolicious::Lite on cpanmetadb failed.
! Finding Mojolicious::Lite (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Mojolicious::Lite
! Finding Try::Tiny on cpanmetadb failed.
! Finding Try::Tiny (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Try::Tiny
! Finding WWW::Telegram::BotAPI on cpanmetadb failed.
! Finding WWW::Telegram::BotAPI (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution WWW::Telegram::BotAPI
! Finding List::MoreUtils on cpanmetadb failed.
! Finding List::MoreUtils (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution List::MoreUtils
! Finding DateTime::Format::RFC3339 on cpanmetadb failed.
! Finding DateTime::Format::RFC3339 (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution DateTime::Format::RFC3339
! Finding common::sense on cpanmetadb failed.
! Finding common::sense (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution common::sense
! Finding DateTime on cpanmetadb failed.
! Finding DateTime (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution DateTime
! Finding Data::Dumper::AutoEncode on cpanmetadb failed.
! Finding Data::Dumper::AutoEncode (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Data::Dumper::AutoEncode
! Finding Test::MockObject on cpanmetadb failed.
! Finding Test::MockObject (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Test::MockObject
! Finding FSA::Rules on cpanmetadb failed.
! Finding FSA::Rules (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution FSA::Rules
! Finding Log::Any::Adapter on cpanmetadb failed.
! Finding Log::Any::Adapter (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Log::Any::Adapter
! Finding Date::Parse on cpanmetadb failed.
! Finding Date::Parse (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Date::Parse
! Finding DateTime::SpanSet on cpanmetadb failed.
! Finding DateTime::SpanSet (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution DateTime::SpanSet
! Finding Log::Any::For::Std on cpanmetadb failed.
! Finding Log::Any::For::Std (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Log::Any::For::Std
! Finding Log::Any on cpanmetadb failed.
! Finding Log::Any (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution Log::Any
! Finding DateTime::Duration on cpanmetadb failed.
! Finding DateTime::Duration (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution DateTime::Duration
! Finding API::Google on cpanmetadb failed.
! Finding API::Google (0) on mirror http://www.cpan.org failed.
! Couldn't find module or a distribution API::Google
! Installing the dependencies failed: Module 'DateTime::Duration' is not installed, Module 'API::Google' is not installed, Module 'Date::Parse' is not installed, Module 'Log::Any::For::Std' is not installed, Module 'DateTime::SpanSet' is not installed, Module 'Log::Any' is not installed, Module 'Data::Dumper::AutoEncode' is not installed, Module 'DateTime' is not installed, Module 'Test::MockObject' is not installed, Module 'FSA::Rules' is not installed, Module 'Log::Any::Adapter' is not installed, Module 'DateTime::Span' is not installed, Module 'Mojolicious::Lite' is not installed, Module 'Try::Tiny' is not installed, Module 'WWW::Telegram::BotAPI' is not installed, Module 'common::sense' is not installed, Module 'List::MoreUtils' is not installed, Module 'DateTime::Format::RFC3339' is not installed
! Bailing out the installation for ..
The command '/bin/sh -c cpanm --installdeps . 	&& git clone https://bitbucket.org/serikov/serikoff.lib.git' returned a non-zero code: 1
ERROR: Can't connect: Name or service not known at /usr/local/lib/perl5/site_perl/5.24.0/WWW/Telegram/BotAPI.pm line 209, <DATA> line 1.
	WWW::Telegram::BotAPI::api_request() called at /usr/local/lib/perl5/site_perl/5.24.0/WWW/Telegram/BotAPI.pm line 76
	WWW::Telegram::BotAPI::AUTOLOAD(WWW::Telegram::BotAPI=HASH(0x3f463e8)) called at lib/Telegram.pm line 31
	Telegram::BotAPI::my_id(Telegram::BotAPI=HASH(0x11eba50)) called at bot.pl line 30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants