add docker images.
This commit is contained in:
parent
e1273a3eb9
commit
4021ffa190
@ -5,7 +5,12 @@ ENV DEBIAN_FRONTEND=noninteractive
|
||||
RUN sed -i "s@http://.*archive.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
|
||||
&& sed -i "s@http://.*security.ubuntu.com@http://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list \
|
||||
&& apt update \
|
||||
&& apt install -y git lz4 unzip python3-pip
|
||||
&& apt install -y curl git lz4 unzip python3-pip \
|
||||
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
|
||||
&& apt update \
|
||||
&& apt install -y nodejs \
|
||||
&& apt clean \
|
||||
&& rm -fr /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
RUN pip3 install yoctools pyyaml && cd /usr/bin && ln -s python3 python
|
||||
|
||||
|
@ -1,11 +1,11 @@
|
||||
#include "BlogSession.h"
|
||||
#include <Wt/Auth/AuthService.h>
|
||||
#include <Wt/Auth/GoogleService.h>
|
||||
#include <Wt/Auth/HashFunction.h>
|
||||
#include <Wt/Auth/PasswordService.h>
|
||||
#include <Wt/Dbo/FixedSqlConnectionPool.h>
|
||||
#include <Wt/Auth/PasswordVerifier.h>
|
||||
#include <Wt/Auth/PasswordStrengthValidator.h>
|
||||
#include <Wt/Auth/GoogleService.h>
|
||||
#include <Wt/Auth/PasswordVerifier.h>
|
||||
#include <Wt/Dbo/FixedSqlConnectionPool.h>
|
||||
|
||||
class BlogOAuth : public std::vector<const Wt::Auth::OAuthService *> {
|
||||
public:
|
||||
@ -57,6 +57,10 @@ Wt::Dbo::ptr<User> BlogSession::user() const {
|
||||
return Wt::Dbo::ptr<User>();
|
||||
}
|
||||
|
||||
Wt::Signal<Wt::Dbo::ptr<Comment>> &BlogSession::commentsChanged() {
|
||||
return m_commentsChanged;
|
||||
}
|
||||
|
||||
Wt::Auth::PasswordService *BlogSession::passwordAuth() const {
|
||||
return &blogPasswords;
|
||||
}
|
||||
|
@ -19,9 +19,7 @@ public:
|
||||
return m_login;
|
||||
}
|
||||
Wt::Dbo::ptr<User> user() const;
|
||||
Wt::Signal<Wt::Dbo::ptr<Comment>> &commentsChanged() {
|
||||
return commentsChanged_;
|
||||
}
|
||||
Wt::Signal<Wt::Dbo::ptr<Comment>> &commentsChanged();
|
||||
BlogUserDatabase &users() {
|
||||
return m_users;
|
||||
}
|
||||
@ -32,6 +30,6 @@ private:
|
||||
Wt::Dbo::SqlConnectionPool &m_connectionPool;
|
||||
BlogUserDatabase m_users;
|
||||
Wt::Auth::Login m_login;
|
||||
Wt::Signal<Wt::Dbo::ptr<Comment>> commentsChanged_;
|
||||
Wt::Signal<Wt::Dbo::ptr<Comment>> m_commentsChanged;
|
||||
};
|
||||
#endif // __BLOGSESSION_H__
|
Loading…
Reference in New Issue
Block a user